Aug 16, 2017

SICP# E1.2: Translate formula to prefix notation

SICP# E1.2: Translate formula to prefix notation

Translate the following expression into prefix form

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


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

                                        ;Value: -23/90

No comments :

Post a Comment