Skip to content

Instantly share code, notes, and snippets.

@kouddy
Created February 24, 2015 02:04
Show Gist options
  • Save kouddy/a05b9acba723e9e69f39 to your computer and use it in GitHub Desktop.
Save kouddy/a05b9acba723e9e69f39 to your computer and use it in GitHub Desktop.
;;;(fast-mult 2 7)
(+ 2 (fast-mult 2 6))
(+ 2 (* 2 (fast-mult 2 3)))
(+ 2 (* 2 (+ 2 (fast-mult 2 2))))
(+ 2 (* 2 (+ 2 (* 2 (fast-mult 2 1)))))
(+ 2 (* 2 (+ 2 (* 2 (+ 2 (fast-mult 2 0))))))
(+ 2 (* 2 (+ 2 (* 2 (+ 2 0)))))
(+ 2 (* 2 (+ 2 (* 2 2))))
(+ 2 (* 2 (+ 2 4)))
(+ 2 (* 2 6))
(+ 2 12)
14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment