summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrsiddharth <rsiddharth@ninthfloor.org>2016-04-23 02:41:14 +0000
committerrsiddharth <rsiddharth@ninthfloor.org>2016-04-23 02:41:14 +0000
commit0e3dccf67b94f3edd02efb153ce864d81de82ead (patch)
tree202b55405f811e13afe5d0d39aa19f22ec370c79
parentd76d30c3bf35781c2f0e883262bc6d0606e7c1c7 (diff)
update exercise 1.7.
-rw-r--r--sicp.org13
1 files changed, 9 insertions, 4 deletions
diff --git a/sicp.org b/sicp.org
index 1df2e98..b338700 100644
--- 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.