The Maclaurin series for the arctangent function converges for −1<x≤1 and is given by
arctanx=n→∞limPn(x)=n→∞limi=1∑n(−1)i−12i−1x2i−1.
Use the fact that tan(π/4)=1 to determine the number of terms, n, of the series that need to be summed to ensure that ∣4Pn(1)−π∣<10−3.