Try it on paper first. A hint, the key idea and the worked solution are here when you need them.
A program adds the series term by term. It must stop when the sum is certain to be within of the true value. Use the error bound to find the smallest number of terms that guarantees an error less than . Then find the bound for that , to seven decimal places. Check first that the alternating series test applies.
Alternating series test: decreasing with gives convergence, and . A series converges absolutely if converges. If it converges but not absolutely, it converges conditionally.
Have you tried it?
Work it out on paper first. It is fine to get stuck or make a mistake: that is how we learn. When you are ready, go through the solution one step at a time, and check each step against your own.
Given. , which decreases to , so the series converges by the alternating series test.
Plan. Find the smallest with .
Step 1. The inequality. We need , that is .
Step 2. Test values. is too small. is above . So and .
Step 3. The bound. .
Check. With the bound would be , which is above . So terms is the smallest number that is guaranteed.
Watch out. The bound is , the first term left out. A common slip is to use and stop one term too early or too late.
Answer: terms, and the error is at most .
Log in to join the discussion.
Loading…