From 0e3dccf67b94f3edd02efb153ce864d81de82ead Mon Sep 17 00:00:00 2001 From: rsiddharth Date: Sat, 23 Apr 2016 02:41:14 +0000 Subject: update exercise 1.7. --- sicp.org | 13 +++++++++---- 1 file 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. -- cgit v1.2.3