This comes from a programming assignment I was given using MATLAB. The objective was to calculate the difference between $\pi/4$ and the Leibniz series for computing $\pi/4$ with $n = 200$.
This series appears to converge relatively slowly, and so at what point can we confidently say that "the 576th digit is 3" of an irrational number? Do we just take the approximation out to a million terms and assume that the first couple of hundred terms are the correct numbers?
Or in other words, how do we tell, given an approximation (given by a series or whatnot) that the given digit in a certain place is the "correct" digit as opposed to a part of the error in the approximation?