|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools |
Rating:
|
Display Modes |
|
#25
|
||||
|
||||
|
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. |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Column Under Construction (2003 10-30) | EddieMcD | Chit-Chat | 12 | 07-11-2003 20:14 |
| What formulas can you use? | Tton | General Forum | 7 | 04-11-2003 00:33 |
| Image Discuss: Team 179's Crazy Critter | CD47-Bot | Robot Showcase | 95 | 25-03-2003 08:08 |
| crazy stuff | chris144 | Chit-Chat | 19 | 08-04-2002 20:13 |
| Logical statements or math formulas | Manoel | Programming | 1 | 16-02-2002 23:29 |