home *** CD-ROM | disk | FTP | other *** search
- From: daveb@hpgrla.gr.hp.com (Dave Boyd)
- Date: Tue, 5 Jan 1993 20:51:00 GMT
- Subject: Re: Pi and math in general
- Message-ID: <53780001@hpgrla.gr.hp.com>
- Organization: Hewlett-Packard, Greeley, CO
- Path: sparky!uunet!cs.utexas.edu!usc!wupost!sdd.hp.com!hpscit.sc.hp.com!hplextra!hpfcso!hpgrla!daveb
- Newsgroups: sci.math
- References: <memo.837764@cix.compulink.co.uk>
- Lines: 37
-
- In sci.math, icdocherty@cix.compulink.co.uk (Ian Docherty) writes:
-
- >In-Reply-To: Clayten_Hamacher@mindlink.bc.ca (Clayten Hamacher)
-
- > TITLE: Pi and math in general
-
- ... stuff deleted ...
-
- >INITIAL VALUES
-
- > A = 1
- > X = 1
- > B = 1 / root(2)
- > C = 1 / 4
-
- >LOOP:
- > Y = A
- > A = (A + B) / 2
- > B = root(B * Y)
- > C = C - X * (A - Y) * (A - Y)
- > X = 2 * X
- > print the value of (A + B) * (A + B) / (4 * C)
- > repeat from LOOP
-
- >Where 'root' means take the square root
-
- >Ian.
-
- Interesting. A quick trial shows this appears to work. Could
- someone post (or email) a reference or a brief explanation of what's
- going on here?
-
- Thanks,
-
- Dave Boyd
- Hewlett-Packard, Greeley, Colorado
- Standard Disclaimers Apply
-