CHAPTER 6

image

Numerical Series and Power Series

Numerical Series of Non-negative Terms

MATLAB enables you to work with numerical series of non-negative terms and with alternating series. In addition, the commands relating to limits allow you to work with different convergence tests for numerical series.

In the case where the sum is convergent, there are various functions available to help you to find the sum. We have the following:

symsum(S,v,a,b)

Sums the series S as the variable v varies from a to b.

syms x;

symsum(x^k/sym('k!'), k, 0, inf)

symsum(S,v)

Sums the series S as the variable v varies from 0 to v-1.

>> symsum(k^2,k)

ans =

k^3/3 ...

Get MATLAB Mathematical Analysis now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.