Skip to content

Instantly share code, notes, and snippets.

@jimweirich
Forked from redsquirrel/gist:189191
Created September 18, 2009 19:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jimweirich/189237 to your computer and use it in GitHub Desktop.
Save jimweirich/189237 to your computer and use it in GitHub Desktop.
;; SICP Exercise 1.2:
;; Translate the following expression into prefix form
(/ (+ 5 4 (- 2 (- 3 (+ 6 (/ 1 5)))))
(* 3 (- 6 2) (- 2 7)) )
;; => -71/300
;; or -0.236666666666667
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment