Skip to content

Instantly share code, notes, and snippets.

@aberant
Forked from redsquirrel/gist:189191
Created September 20, 2009 19:40
Show Gist options
  • Save aberant/189899 to your computer and use it in GitHub Desktop.
Save aberant/189899 to your computer and use it in GitHub Desktop.
(5 + 4 + (2 - (3 - (6 + 4/5)))) / (3 * (6-2) * (2 - 7))
(+ 5 4 (2 - (3 - (6 + 4/5)))) / (3 * (6-2) * (2 - 7)) # prefix first set of addition
(+ 5 4 (- 2 (- 3 (+ 6 (/ 4 5)))) / (3 * (6-2) * (2 - 7)) # prefix entire left side
(+ 5 4 (- 2 (- 3 (+ 6 (/ 4 5)))) / (* 3 (- 6 2) (- 2 7)) # prefix right side
(/ (+ 5 4 (- 2 (- 3 (+ 6 (/ 4 5))))) (* 3 (- 6 2) (- 2 7)) ) # prefix the rest
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment