http://planetmath.org/encyclopedia has a LOT of information on math, and explains it in a simple enough way that you can probably understand it. I had no idea how to use the summation (sigma:) notation, but it explained it well enough for me to write my Pi program.

Think you could send a crypto link my way in payment, lol :P Crypto is one of my weak parts in general programming, and I'm sure it'd help me with making algos better.

Think you could send a crypto link my way in payment, lol :P Crypto is one of my weak parts in general programming, and I'm sure it'd help me with making algos better.

summation is to add up all the terms.

But usually you see something like (the forumla I used to aproximate pi), and

I feel bad intruding this thread and hence polluting it, so I am splitting up the thread and creating a new one.

There's so many different pi formulas to use. http://en.wikipedia.org/wiki/Pi listed alot of various formulas that you can use. As I'm a lazy fellow, I believe I would just use the formula pi/4 = archtan 1 if I have to approximate the value of pi

archtan can be easily calculated using Maclaurin series.

Summation is a simple thing. According to the formula given by you, in pseudo code (forgive me if it look more like C) it will look like

pi = 0

for (k = 0;; k++){

tmp = k! / (2k+1)!!

pi += tmp

}

There's so many different pi formulas to use. http://en.wikipedia.org/wiki/Pi listed alot of various formulas that you can use. As I'm a lazy fellow, I believe I would just use the formula pi/4 = archtan 1 if I have to approximate the value of pi

archtan can be easily calculated using Maclaurin series.

Summation is a simple thing. According to the formula given by you, in pseudo code (forgive me if it look more like C) it will look like

pi = 0

for (k = 0;; k++){

tmp = k! / (2k+1)!!

pi += tmp

}

Yep, that's aboiut it, though it takes considerably more lines in ASM, lol.

I've only taken grade 11 math (failed and crap, because I'm lazy and don't apply myself in school :/) so I've never been introduced to the arctan stuff yet.

If I was trying to make a REALLY fast pi generator, I'd use the Ramanujan formula:

I've only taken grade 11 math (failed and crap, because I'm lazy and don't apply myself in school :/) so I've never been introduced to the arctan stuff yet.

If I was trying to make a REALLY fast pi generator, I'd use the Ramanujan formula:

Interseting site I must say.. I was thinking abt finding out the nth digit using another pi formula, but i got lazy. ;)

Yeah, I have a program someplace that was supposed to compute pi through however many runs through my algo (first one I posted there), but I've got a stack overflow and I'm too lazy to figure it out, lol.

arctan(x) = z <==> tan(z) = x

That's all you should know about arctan. It is the inverse function of tan.

That's all you should know about arctan. It is the inverse function of tan.

I recently posted some code on the pi-hacks newsgroup. It can calculate PI to 1 million digits in 2.82 seconds on my Athlon 64 2.2.

They have a file section you can download it from. The name of the file is chud.zip

http://groups.yahoo.com/group/pi-hacks/files/