home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / programm / 3615 < prev    next >
Encoding:
Internet Message Format  |  1993-01-28  |  1.2 KB

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