- #1
mathmari
Gold Member
MHB
- 5,049
- 7
Hey!
I want to determine the value of $n\in \mathbb{N}$ such that the absolute error $$\left |\sum_{k=0}^{\infty}\frac{(-1)^k}{(2k+1)\cdot k!}-\sum_{k=0}^{n}\frac{(-1)^k}{(2k+1)\cdot k!}\right | =\left |\sum_{k=n+1}^{\infty}\frac{(-1)^k}{(2k+1)\cdot k!}\right |$$ is less than $10^{-6}$. Do I have to find an upper bound for the error? But how? I tried the following:
$$\left |\sum_{k=n+1}^{\infty}\frac{(-1)^k}{(2k+1)\cdot k!}\right |\leq \sum_{k=n+1}^{\infty}\left |\frac{(-1)^k}{(2k+1)\cdot k!}\right |=\sum_{k=n+1}^{\infty}\frac{1}{(2k+1)\cdot k!}\leq \frac{1}{(2(n+1)+1)\cdot (n+1)!}$$ But this tends to infinity, doesn't it? We have here an alternating series. The sequence $a_k:=\frac{1}{(2k+1)\cdot k!}$ is decreasing. That means that $a_{n+1}$ is greater than every other term of the sum. Is it also bigger than the whole sum? (Wondering)
I want to determine the value of $n\in \mathbb{N}$ such that the absolute error $$\left |\sum_{k=0}^{\infty}\frac{(-1)^k}{(2k+1)\cdot k!}-\sum_{k=0}^{n}\frac{(-1)^k}{(2k+1)\cdot k!}\right | =\left |\sum_{k=n+1}^{\infty}\frac{(-1)^k}{(2k+1)\cdot k!}\right |$$ is less than $10^{-6}$. Do I have to find an upper bound for the error? But how? I tried the following:
$$\left |\sum_{k=n+1}^{\infty}\frac{(-1)^k}{(2k+1)\cdot k!}\right |\leq \sum_{k=n+1}^{\infty}\left |\frac{(-1)^k}{(2k+1)\cdot k!}\right |=\sum_{k=n+1}^{\infty}\frac{1}{(2k+1)\cdot k!}\leq \frac{1}{(2(n+1)+1)\cdot (n+1)!}$$ But this tends to infinity, doesn't it? We have here an alternating series. The sequence $a_k:=\frac{1}{(2k+1)\cdot k!}$ is decreasing. That means that $a_{n+1}$ is greater than every other term of the sum. Is it also bigger than the whole sum? (Wondering)