sicp

sicp sandbox.
git clone git://git.ricketyspace.net/sicp.git
Log | Files | Refs

commit 59e08dc3c68e13ad1ecbf7e50be5306bc8abaa5a
parent f4dea03a01e95f7c0d72a1c3c49ff87d08a5beac
Author: rsiddharth <rsiddharth@ninthfloor.org>
Date:   Thu, 24 Mar 2016 08:20:10 -0400

Add notes (ex 1.7).

Diffstat:
sicp.org | 18++++++++++++++++++
1 file changed, 18 insertions(+), 0 deletions(-)

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