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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.