- the sign of term must change at each iteration
- in term again, the power of x is odd (2*k+1)
- Pn is the result you're calculating. It's what you want to display, not term.
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!