summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrsiddharth <s@ricketyspace.net>2016-07-23 15:56:24 +0000
committerrsiddharth <s@ricketyspace.net>2016-07-23 15:56:24 +0000
commita394d0140222bb7939cbcf3f27f2ad6ca0b7f1d7 (patch)
tree1e7af6a92532761ad688dc6caf29ea171c1118b2
parent6b34745c4287464a030f2b255ece126494eada54 (diff)
finish ex. 1.10.
-rw-r--r--sicp.org9
1 files changed, 9 insertions, 0 deletions
diff --git a/sicp.org b/sicp.org
index 9508aa9..4611cb2 100644
--- a/sicp.org
+++ b/sicp.org
@@ -268,3 +268,12 @@ is ~A = 2x2^y~.
(A 1 2^65536)
2^(2^65536)
#+END_SRC
+**** mathematical definitions for
+***** (define (f n) (A 0 n))
+=(f n)= computes =(* 2 n)=
+***** (define (g n) (A 1 n))
+=(g n)= computes =(expt 2 n)=
+***** (define (h n) (A 2 n))
+=(h n)= computes =(expt 2 (h (1- n)))=
+***** (define (k n) (* 5 n n))
+=(k n)= computes =(* 5 n n)=