Note: this wiki is now retired and will no longer be updated!

The static final versions of the pages are left as a convenience for readers. Note that meta-pages such as "discussion," "history," etc., will not work.

SICP exercise 1.02

From Drewiki
Jump to: navigation, search

Problem

Translate the following expression into prefix form:


\frac{5+4+(2-(3-(6+\frac{4}{5})))}{3(6-2)(2-7)}

Solution

(/
 (+ 5 4
    (- 2
       (- 3
          (+ 6
             (/ 4 5)))))
 (* 3
    (- 6 2)
    (- 2 7)))
Personal tools