Solution to SICP Exercise 1.35

Structure and Interpretation of Computer Programs

Solution to Exercise 1.35:

(define golden-ratio
(fixed-point (lambda (x) (+ 1 (/ 1 x)))
1.0))

> golden-ratio
1.6180327868852458

Advertisements