calculate the value of pi from in finite series
pi=4-(4/3)+(4/5)-(4/7)+(4/9)-(4/11)....
print a table that shows the approximate value of pi 1,000 terms series

calculate the value of pi from in finite series
pi=4-(4/3)+(4/5)-(4/7)+(4/9)-(4/11)....
print a table that shows the approximate value of pi 1,000 terms series

arctan(1)=pi/4 wich means : the arc wich has 1 as tan is equal to pi/4 radians.
SEries expansion gives :
arctan(1) = 1-1/3+1/5-1/7....
so pi/4 = 1-1/3+1/5-1/7....
1-1/3+1/5-1/7....can be easily computed.

The series is the Geogory-Leibniz series. It is one of the slowest convergent series for pi. You need about to sum 300 terms to get 3.14 accurately, to get 10 digits you need about 10 billion terms and to get to 1000 digits you are in the realms of needing more computations than atoms in the universe (by a long way!).

I note that there are some transforms that get the convergence quickly (see wolfram site) , if that was the intention of the question, fine, but otherwise it is a very stupid question.

Hello guys, hope you all fine,,
I have a problem when coding using python and opencv.
My project is to track the ball in model soccer pitch using raspberry pi ...