diff options
-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 |