Symbolic Math Toolbox
 Go to function:
  Search    Help Desk 
symsum ExamplesSee Also

Symbolic summation.

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

The commands

return

symsum(k) returns

symsum(sin(k*pi)/k,0,n) returns

symsum(k^2,0,10) 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 MATLAB's expression parser, which does not recognize ! as a factorial operator.

See Also

findsym, int, syms



[ Previous | Help Desk | Next ]