home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!UB.com!pacbell.com!decwrl!gossip.pyramid.com!olivea!charnel!psgrain!neon!pail!bucket!samw
- From: samw@bucket.rain.com (Sam Warden)
- Newsgroups: comp.programming
- Subject: Re: how to calculate PI
- Message-ID: <samw.728112579@bucket>
- Date: 27 Jan 93 05:29:39 GMT
- References: <peterd.727508100@tscc2> <LOWRY.93Jan20104500@rotor.watson.ibm.com> <1993Jan24.044329.8505@emr1.emr.ca>
- Sender: usenet@pail.rain.com (USENET News)
- Organization: Rick's Home-Grown Un*x
- Lines: 22
- Nntp-Posting-Host: bucket.rain.com
-
- jagrant@emr1.emr.ca (John Grant) writes:
-
- >In article <LOWRY.93Jan20104500@rotor.watson.ibm.com> lowry@watson.ibm.com (Andy Lowry) writes:
- >>One of the coolest formulas I've seen in Gregory's formula:
- >>
- >> pi/4 = 4*atan(1/5)-atan(1/239)
- > [...stuff deleted...]
-
- > Huh? What's wrong with just plain ol'
- > pi=4.0*atan(1.0);
-
- As has just recently been pointed out here, the Taylor series for
- arctangent is "slow to converge" at 1.0, so the first formula is
- faster. How slow? These people are masters of ironic under-
- statement. :-) Being provoked by this discussion I just tried
- it. Waiting for just the fifth digit makes watching paint dry
- seem positively exhilarating.
-
- --
-
- samw@bucket.rain.com (Sam Warden) -- and not a mere Device.
-
-