Close
Close window
Sum - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Mozilla Firefox.
Maplesoft logo
Maplesoft logo

Online Help

All Products Maple MapleSim


[フレーム] [フレーム]

sum

definite and indefinite symbolic summation

Calling Sequence

sum(f, k)

kf

sum(f, k=m..n)

k=mnf

Parameters

f

-

expression

k

-

name; summation index

m, n

-

integers or arbitrary expressions

Basic Information

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 kk2.

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.

Examples

Typical Examples

>

sumk2,k

13k312k2+16k

(1)
>

sumk,k=0..n1

12n212n

(2)
>

sumk+1,k=0..n

1+n22+12+n2

(3)
>

sum1k!,k=0..

ⅇ

(4)

To add a finite sequence of values, the add command can be used.

>

sumk+1,k=0..6

28

(5)
>

addk+1,k=0..6

28

(6)

Classical Telescoping

>

sumbinomial2n2k,nk24k2k2k+1binomial2k,k1,k=1..n

2n2n116n+822n+1

(7)

Details

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.

Compatibility

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 .


Download Help Document

AltStyle によって変換されたページ (->オリジナル) /