SICP Exercise 1.8

Exercise 1.8.  Newton's method for cube roots is based on the fact that if y is an approximation to the cube root of x, then a better approximation is given by the value


Use this formula to implement a cube-root procedure analogous to the square-root procedure.

SOLUTION

The code his here:

SICP Exercise 1.8 cube-root

Comments

Popular posts from this blog

SICP Exercise 1.22 search-for-primes

SICP Exercise 3.45 deadlock

SICP Exercise 4.18 a alternative strategy for interpreting internal definitions