«

»

Mar 19

Pi on a Pi Followup

The particular algorithm used in calculating Pi is one which converges to Pi as you add terms; it’s not calculating out to a number of digits, although I might try that one as well at some point.

Here’s the output from a run; it’s interesting how it gets closer and closer, but… Another interesting thing is how, say, in the run with 10K terms it is off by a digit in the middle and subsequent ones are correct — 3.14149265359 instead of 3.141592653589.

Leave a Reply

%d bloggers like this: