home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / programm / 3545 < prev    next >
Encoding:
Text File  |  1993-01-21  |  1.1 KB  |  33 lines

  1. Newsgroups: comp.programming
  2. Path: sparky!uunet!elroy.jpl.nasa.gov!nntp-server.caltech.edu!draco.macsch.com!convex.is.macsch.com!dnl
  3. From: dnl@convex.is.macsch.com (David Lombard)
  4. Subject: Re: how to calculate PI
  5. Message-ID: <1993Jan21.210739.26114@draco.macsch.com>
  6. Sender: usenet@draco.macsch.com (Usenet Poster)
  7. Organization: MacNeal-Schwendler Corp.
  8. References: <peterd.727508100@tscc2> <LOWRY.93Jan20104500@rotor.watson.ibm.com>
  9. Date: Thu, 21 Jan 93 21:07:39 GMT
  10. Lines: 21
  11.  
  12. In article <LOWRY.93Jan20104500@rotor.watson.ibm.com> lowry@watson.ibm.com (Andy Lowry) writes:
  13. >In article <peterd.727508100@tscc2> peterd@tscc2.macarthur.uws.edu.au () writes:
  14. > > Anyone out there have an algorithm for calculating PI ?
  15. >
  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. >
  20.  
  21. Howzabout:
  22.         pi = atan2( 0.0, -1.0 )
  23.  
  24. No fuss, no muss, no bother...
  25.  
  26. Regards,
  27. DNL
  28.                       MY_COMMENTS, MY_OPINIONS.
  29.  
  30. David N. Lombard    The first thing we do,         The MacNeal-Schwendler Corp
  31. dnl@macsch.com      Let's kill all the lawyers.    815 Colorado Blvd
  32. (213) 259-4911      II Henry VI, IV.ii             Los Angeles, CA  90041
  33.