Suppose we have a convergent series $s_k=\sum_{n=0}^{k} a_n$ or sequence $\{a_n\}$ with limit $a$.
How can I determine $N \in \mathbb N$ such that $|s_k-a| \le \epsilon$ or $|a_n-a| \le \epsilon$ $ \ \ \forall \ n \ge N$.
This question has a lot of interest to me. Recently I proved the Leibniz' series is convergent with limit $\frac \pi 4$. I want to create a computer program that calculates $\pi$ from this series (it might be ineffective). However I know only the limit of the series, I don't know how many iterations to make before reaching $N \in \mathbb N$ such that the computation is within the required precision $\epsilon > 0$ for $n \ge N$ iterations.