Menu

[solved] – Question 74918

The sum of a series can be computed as sum=x+x^2/2+x^3/3+x^4/4+x^5/5+⋯ ∞<x<∞ stopping when either n terms have been added or when the magnitude of a term in the series is less than 10-6, whichever comes first.
You are required to write a function, sumSeries, which given x, n returns the sum of the series. Use #include <cmath> and the abs function.
Do not use pow.

Expert Answer


OR


Leave a Reply

Your email address will not be published. Required fields are marked *