sicp

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

commit 0e3dccf67b94f3edd02efb153ce864d81de82ead
parent d76d30c3bf35781c2f0e883262bc6d0606e7c1c7
Author: rsiddharth <rsiddharth@ninthfloor.org>
Date:   Sat, 23 Apr 2016 02:41:14 +0000

update exercise 1.7.

Diffstat:
sicp.org | 13+++++++++----
1 file changed, 9 insertions(+), 4 deletions(-)

diff --git a/sicp.org b/sicp.org @@ -98,7 +98,12 @@ scheme@(guile-user)> (sqrt-sicp-alt 0.1) $9 = 0.31622776651756745 #+END_SRC -0.31622776651756745 is more precise than 0.316245562280389 (which is -the answer returned by the custom sqrt function that uses the ol' -=good-enough= function) but not as precise as the answer returned by -the guile's sqrt function. +0.31622776651756745 is more precise than 0.316245562280389 (the answer +returned by the custom sqrt function that uses the ol' =good-enough= +function) but not as precise as the answer returned by the guile's +sqrt function. + +For a number as large as 1000000000, guile's =sqrt= function and +=sqrt-sicp-alt= returns 31622.776601683792, =sqrt-sicp= returns +31622.776601684047; =sqrt-sicp= being slightly more precise than the +other functions.