Wednesday, September 20, 2006

Calculate pi

Sum this i = 0 -> infinity to calculate pi. It will calculate one Hex digit of pi every iteration.

pi=((4/((8*i)+1))-(2/((8*i)+4)) - (1/((8*i)+5))-(1/((8*i)+6)))/(16^i)

No comments: