summaryrefslogtreecommitdiffstats
path: root/sicp.org
diff options
context:
space:
mode:
authorrsiddharth <rsiddharth@ninthfloor.org>2016-03-24 08:20:10 -0400
committerrsiddharth <rsiddharth@ninthfloor.org>2016-03-24 08:20:10 -0400
commit59e08dc3c68e13ad1ecbf7e50be5306bc8abaa5a (patch)
tree3fef2c2a3042781ffe0a52f64b95a376bd38015a /sicp.org
parentf4dea03a01e95f7c0d72a1c3c49ff87d08a5beac (diff)
Add notes (ex 1.7).
Diffstat (limited to 'sicp.org')
-rw-r--r--sicp.org18
1 files changed, 18 insertions, 0 deletions
diff --git a/sicp.org b/sicp.org
index 5fde8ae..35880ea 100644
--- a/sicp.org
+++ b/sicp.org
@@ -60,3 +60,21 @@ and will evaluate to ~0~.
to the last operand, which is a call to the ~sqrt-iter~ procedure,
we get into infinite loop of evaluating the ~sqrt-iter~ procedure
again and again.
+*** 7
+
+#+BEGIN_SRC scheme
+$ guile
+scheme@(guile-user)> (sqrt 0.1)
+$1 = 0.31622776601683794
+#+END_SRC
+
+#+BEGIN_EXAMPLE
+ 0.31622776601683794
+0.0001 = 0.316245562280389
+0.00001 = 0.31622776651756745
+0.000001 = 0.31622776651756745
+0.0000001 = 0.31622776651756745
+0.00000001 = 0.31622776651756745
+0.000000001 = 0.31622776651756745
+0.0000000001 = 0.31622776601683794
+#+END_EXAMPLE