| Symbolic Math Toolbox | ![]() |
Syntax
Description
symsum(s) is the summation of the symbolic expression s with respect to its symbolic variable k as determined by findsym from 0 to k-1.
symsum(s,v) is the summation of the symbolic expression s with respect to the symbolic variable v from 0 to v-1.
symsum(s,a,b) and symsum(s,v,a,b) are the definite summations of the symbolic expression from v=a to v=b.
Examples
symsum(sin(k*pi)/k,0,n) returns
symsum(x^k/sym('k!'), k, 0,inf) returns
Note
The preceding example uses sym to create the symbolic expression k! in order to bypass the MATLAB expression parser, which does not recognize ! as a factorial operator.
|
See Also
| sym2poly | taylor | ![]() |