Skip to content

1.02

; Translate the following expression into prefix form
;
;       5 + 4 + (2 - (3 - (6 + 4/5)))
;      -------------------------------
;             3 (6 - 2) (2 - 7)
;
;  Ans: -37/150
;
(/ (+ 5 
      4
      (- 2
         (- 3
            (+ 6 (/ 4 5))
         )
      )
   )
   (* 3
      (- 6 2)
      (- 2 7)
   )
)