Subject: Re: Abstraction(homework)
From: rpw3@rigden.engr.sgi.com (Rob Warnock)
Date: 17 Dec 2000 10:10:25 GMT
Newsgroups: comp.lang.scheme
Message-ID: <91i3eh$c1685$1@fido.engr.sgi.com>
<thomasguu@my-deja.com> wrote:
+---------------
| But I have problems defining sgrt and fixed-point:
| (define (sqrt <??>)
|  <??>
|  ((iterative-improve <??> <??>) 1.0))
+---------------

Do a Web (or textbook) search for "Newton-Raphson", and read
the description of the Newton-Raphson method of square roots.
You should then find it very straightforward to write an
"improve" function to pass to "iterative-improve".


-Rob

-----
Rob Warnock, 31-2-510		rpw3@sgi.com
Network Engineering		http://reality.sgi.com/rpw3/
Silicon Graphics, Inc.		Phone: 650-933-1673
1600 Amphitheatre Pkwy.		PP-ASEL-IA
Mountain View, CA  94043