View Single Post
  #10   Spotlight this post!  
Unread 22-01-2004, 16:51
echos's Avatar
echos echos is offline
Jack of all trades
#1125
Team Role: Programmer
 
Join Date: Dec 2003
Location: San Diego, CA
Posts: 61
echos will become famous soon enough
Send a message via ICQ to echos Send a message via AIM to echos Send a message via MSN to echos Send a message via Yahoo to echos
Re: Crazy Math Formulas

Thanks for the correction it was a little fuzzy in my mind. I found that one on google a while back ago and made a c program out of it. but i lost the source code.

Code:
 unsigned double float pi;
 unsigned int top;
 unsigned int bottem;
 unsigned int count;
 
 int main()
 {
 top = 2;
 bottem = 1;
 pi = top/bottem;
 
 while(count < 10000)
 {
 pi *= top/bottem;
 bottem += 2;
 
 pi *= top/bottem;
 top += 2;
 
 count++
 }
 
 printf ("pi = %f", pi*2);
 }

Last edited by echos : 22-01-2004 at 16:59.
Reply With Quote