| Symbolic Math Toolbox | ![]() |
Symbolic Summation
You can compute symbolic summations, when they exist, by using the symsum command. For example, the p-series
, while the geometric series 1 + x + x2 + ... adds to 1/(1 - x), provided |x| < 1. Three summations are demonstrated below.
syms x k s1 = symsum(1/k^2,1,inf) s2 = symsum(x^k,k,0,inf) s1 = 1/6*pi^2 s2 = -1/(x-1)
| Integration | Taylor Series | ![]() |