home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.programming
- Path: sparky!uunet!elroy.jpl.nasa.gov!nntp-server.caltech.edu!draco.macsch.com!convex.is.macsch.com!dnl
- From: dnl@convex.is.macsch.com (David Lombard)
- Subject: Re: how to calculate PI
- Message-ID: <1993Jan21.210739.26114@draco.macsch.com>
- Sender: usenet@draco.macsch.com (Usenet Poster)
- Organization: MacNeal-Schwendler Corp.
- References: <peterd.727508100@tscc2> <LOWRY.93Jan20104500@rotor.watson.ibm.com>
- Date: Thu, 21 Jan 93 21:07:39 GMT
- Lines: 21
-
- In article <LOWRY.93Jan20104500@rotor.watson.ibm.com> lowry@watson.ibm.com (Andy Lowry) writes:
- >In article <peterd.727508100@tscc2> peterd@tscc2.macarthur.uws.edu.au () writes:
- > > Anyone out there have an algorithm for calculating PI ?
- >
- >One of the coolest formulas I've seen in Gregory's formula:
- >
- > pi/4 = 4*atan(1/5)-atan(1/239)
- >
-
- Howzabout:
- pi = atan2( 0.0, -1.0 )
-
- No fuss, no muss, no bother...
-
- Regards,
- DNL
- MY_COMMENTS, MY_OPINIONS.
-
- David N. Lombard The first thing we do, The MacNeal-Schwendler Corp
- dnl@macsch.com Let's kill all the lawyers. 815 Colorado Blvd
- (213) 259-4911 II Henry VI, IV.ii Los Angeles, CA 90041
-