Click to See Complete Forum and Search --> : Finding Pi


Bugg
May 11th, 1999, 03:08 PM
Im working on Borland C++ and Im trying to figure out an algorythm for pi, but the have all failed for me. Does anyone have a function for finding Pi I could use, or at least some help to finding it? Im in desperate need!!!!!!

Thankx in advance -- Bugg

GreenGiant
May 11th, 1999, 03:14 PM
kinda depends if you just want to know what pi is to a pretty good degree its somewhere around
3.141592653589793238433832795
you can also find it from calc.exe in c:\windows\
if you want to calculate it yourself, i dont have a clue


Of all the things I've lost I miss my mind the most

Paul McKenzie
May 11th, 1999, 04:19 PM
Use your friendly seaech engine. I just typed in "computing PI" in altavista.com and got over 10 pages of hits.

Regards,

Paul McKenzie

May 11th, 1999, 04:38 PM
http://www.brokersys.com/snippets/#section1group11

Various ways of computing PI to ridiculous lengths

Spigot.C Calculate PI to ~1,000 digits using integer ma
Pi.C Calculate PI to 8,000+ digits
Pi8.C Another PI calculator
Pi8.Nfo A discourse on the PI8.C algorithm
Pi_Agm.C Calculate PI to 10's of thousands of digits

sally
May 11th, 1999, 06:41 PM
from my old school days I vaguely recall using the following:

const double pi = 4 * ::tan(1);

please don't quote me on it, but let me know the result
OK?

Sally

Sally
May 11th, 1999, 06:41 PM
from my old school days I vaguely recall using the following:

const double pi = 4 * ::tan(1);

please don't quote me on it, but let me know the result
OK?

Sally

Dave Lorde
May 12th, 1999, 06:49 AM
> ...its somewhere around
> 3.141592653589793238433832795

I think that should be:

3.1415926535897932384626433832795

if I remember correctly... :-)

Dave

How can I tell you I miss you, if you won't go away?