diff options
author | rsiddharth <rsiddharth@ninthfloor.org> | 2016-03-24 08:20:10 -0400 |
---|---|---|
committer | rsiddharth <rsiddharth@ninthfloor.org> | 2016-03-24 08:20:10 -0400 |
commit | 59e08dc3c68e13ad1ecbf7e50be5306bc8abaa5a (patch) | |
tree | 3fef2c2a3042781ffe0a52f64b95a376bd38015a | |
parent | f4dea03a01e95f7c0d72a1c3c49ff87d08a5beac (diff) |
Add notes (ex 1.7).
-rw-r--r-- | sicp.org | 18 |
1 files changed, 18 insertions, 0 deletions
@@ -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 |