Jump to content

Scheme Programming/Numbers and Expressions/Solutions

From Wikibooks, open books for an open world

Evaluation steps

[edit | edit source]
(* (- 7 (/ 9 3)) (* 10 (- 15 3) (+ 4 2)))
  = (* (- 7 3) (* 10 (- 15 3) (+ 4 2)))
  = (* 4 (* 10 (- 15 3) (+ 4 2)))
  = (* 4 (* 10 12 (+ 4 2)))
  = (* 4 (* 10 12 6))
  = (* 4 720)
  = (* 4 720)
  = 2880