So, I've calculated the absolute errors on python for the taylor series approximation to the error function.
$P_N(z)=\frac{2}{\pi} \sum_{n=0}^{N} \frac{(-1)^n z^{2n+1}}{n! (2n+1)}$
I've plotted a graph comparing the error for N=4 and N=5, and for lower values of z (the point the function is evaluated at), the error is smaller for N=5, which is what I would expect, but for higher values of z (roughly z>1) the error is smaller for N=4, why is this? It's probably really simple and I'm being thick, but I can't really explain why.
Thanks in advance!
The original function is bounded, the Taylor polynomials are not (they are non-constant polynomials after all). The fourth degree approximation grows $\sim z^4$, the fifth degree approximation $\sim z^5$ as $z\to \infty$. Clearly, the $z^5$ term is larger than the $z^4$ for $z$ large enough