Use MATLAB to show that the sum of the infinite series
converges to
Do this by computing the sum for:
For each part create a vector n in which the first element is 0, the increment is
1 and the last term is 5, 10, or 50. Then use element-by-element calculations to
create a vector in which the elements are 2
� . Finally, use MATLAB's built-in
n.
function sum to sum the series. Compare the values to e
2
(use format
long to display the numbers).