May I know the formula for pi?
Having just done 10000 terms (on my computer), you can be sure of
1 dp after 25 terms, 2dp after 1255, 3dp after 2464, and after
10000 you still don't have 4 dp of accuracy. So as you can see
this is a particular series is very inefficient, as the
difference between successive terms gets very small very quickly,
that is 1/n - 1/(n+1).
There are many much faster algorithms, but I can't remember them,
but are often work along similar lines.
If you want to know the value of pi, it's best looked up, and
there are a variety of online resources, which can probably be
located by sticking "pi" and "value" into any good search engine,
such as this
one .
Of course, what is pi? I would say pi is the ratio of the
diameter of any circle to its diameter, someone else might say
the sum of an infinite series, but an engineer or scientist might
say pi is 3.14, or a school child might say it's a number that
helps them calculate the area of a circle.
James