Each arrow represents a transformation from an expression to an equivalent expression. Label each arrow with the type of transformation that you observe: Associative Property ("AP"), Commutative Property ("CP"), or Computation ("Comp").
Circles of Evaluation | |
---|---|
1 |
(* (+ 12 3) 4) ⟶
(* 4 (+ 12 3)) ⟶
(* 4 (+ 3 12)) ⟶
(* 4 15)
|
2 |
(* (+ (+ n 5) 3) 8) ⟶
(* (+ n (+ 5 3)) 8) ⟶
(* 8 (+ n (+ 5 3))) ⟶
(* 8 (+ 8 n))
|
3 |
(+ (- 20 2) (+ 6 p)) ⟶
(+ 18 (+ 6 p)) ⟶
(+ (+ 18 6) p) ⟶
(+ 24 p)
|
4 |
(+ (+ g h) m) ⟶
(+ (+ h g) m) ⟶
(+ h (+ g m)) ⟶
(+ (+ g m) h)
|
5 |
(* (+ w (+ 6 5)) 8) ⟶
(* (+ w 11) 8) ⟶
(* 8 (+ w 11)) ⟶
(* 8 (+ 11 w))
|
These materials were developed partly through support of the National Science Foundation, (awards 1042210, 1535276, 1648684, 1738598, 2031479, and 1501927).
Bootstrap by the Bootstrap Community is licensed under a Creative Commons 4.0 Unported License. This license does not grant permission to run training or professional development. Offering training or professional development with materials substantially derived from Bootstrap must be approved in writing by a Bootstrap Director. Permissions beyond the scope of this license, such as to run training, may be available by contacting contact@BootstrapWorld.org.