Created
May 13, 2018 14:32
-
-
Save Edmundworks/c042c71b0a6722fadc6158815529fc53 to your computer and use it in GitHub Desktop.
SICP 1.10b
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(A x y) | |
(A 2 4) | |
(A (- 2 1) | |
(A 2 (- 4 1)) | |
(A 1 | |
(A 2 3) | |
(A 1 | |
(A (- 2 1) | |
(A 2 (- 3 1))) | |
(A 1 | |
(A 1 (A 2 2)) | |
(A 1 | |
(A 1 | |
(A (- 2 1) | |
(A 2 (- 2 1)) | |
(A 1 | |
(A 1 | |
(A 1 | |
(A 2 1)))) | |
(A 1 | |
(A 1 | |
(A 1 2) | |
(A 1 | |
(A 1 | |
(A (- 1 1) | |
(A 1 (- 2 1) | |
(A 1 | |
(A 1 | |
(A 0 (A 1 1) | |
(A 1 | |
(A 1 | |
(* 2 (A 1 1) | |
(A 1 | |
(A 1 4)) | |
(A 1 | |
(A (- 1 1) | |
(A 1 (- 4 1) | |
(A 1 | |
(A 0 (A 1 3) | |
(A 1 | |
(* 2 (A 1 3) | |
(A 1 | |
(* 2 | |
(A (- 1 1) | |
(A 1 (- 3 1))) | |
(A 1 | |
(* 2 | |
(A 0 (A 1 2))) | |
(A 1 | |
(* 2 | |
(* 2 (A 1 2))) | |
(A 1 | |
(* 2 | |
(* 2 | |
(A (- 1 1) | |
(A 1 (- 2 1))) | |
(A 1 | |
(* 2 | |
(* 2 | |
(A 0 (A 1 1))) | |
(A 1 | |
(* 2 | |
(* 2 | |
(* 2 (A 1 1))) | |
(A 1 | |
(* 2 | |
(* 2 | |
(* 2 (2)))) | |
(A 1 16) | |
I know that from the last question, (A 1 y) = 2 ^ y | |
What are they testing here? Am I supposed to plow ahead and do (A 1 16) to the end? | |
2^16 = 65536 | |
Which is the right answer. | |
But did I take a shortbut or is this what they were actually testing | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment