SICP Exercise 1.18

Exercise 1.18.  Using the results of exercises 1.16 and 1.17, devise a procedure that generates an iterative process for multiplying two integers in terms of adding, doubling, and halving and uses a logarithmic number of steps.40

SOLUTION

The code is here.

Comments

Popular posts from this blog

SICP Exercise 2.18 reverse

SICP Exercise 1.45 multi average damp

SICP Exercise 3.56 merge streams