sum
definite and indefinite symbolic summation
Calling Sequence
Parameters
Basic Information
Examples
Details
Compatibility
sum(f, k)
∑k⁡f
sum(f, k=m..n)
∑k=mn⁡f
f
-
expression
k
name; summation index
m, n
integers or arbitrary expressions
Description
The sum command (sum) is for symbolic summation.
You can enter the command sum using either the 1-D or 2-D calling sequence. For example, sum(k^2,k) is equivalent to ∑k⁡k2.
Output
Computes a closed form for a sum.
Maple returns the call unevaluated if it cannot find a closed form.
Note
To add a finite sequence of values, rather than compute a formula, use the add command. For example, add(k, k=0..9) returns 45. Although the sum command can often be used to compute explicit sums, it is strongly recommended that the add command be used in programs if an explicit sum is needed, in particular, when summing over all elements of a list, Array, Matrix, or similar data structure.
Typical Examples
sum⁡k2,k
13⁢k3−12⁢k2+16⁢k
sum⁡k,k=0..n−1
12⁢n2−12⁢n
sum⁡k+1,k=0..n
1+n22+12+n2
sum⁡1k!,k=0..∞
ⅇ
To add a finite sequence of values, the add command can be used.
sum⁡k+1,k=0..6
28
add⁡k+1,k=0..6
Classical Telescoping
sum⁡binomial⁡2⁢n−2⁢k,n−k⁢24⁢k⁢2⁢k⁢2⁢k+1⁢binomial⁡2⁢k,k−1,k=1..n
−2⁢n−2n−1⁢−16⁢n+82⁢2⁢n+1
For detailed information including:
Complete description of all parameters
Complete description of functionality including indefinite summation and the inert form, Sum
Details and examples comparing sum and add commands
see the sum/details help page.
The sum command was updated in Maple 15; see Enhancements to Computational Algorithms in Maple 15.
The sum command was updated in Maple 2016; see Advanced Math.
See Also
add
collect
convert/StandardFunctions
evalf/Sum
expand
mul
normal
product
RootOf
SumTools
SumTools[IndefiniteSum][AddIndefiniteSum]
Download Help Document