Previous Up Next

5.20.3 Discrete summation: sum

The sum command can evaluate sums, series, and find discrete antiderivatives. A discrete antiderivative of a sum ∑nf(n) is an expression G such that G|x=n+1G|x=n=f(n), which means that ∑n=MNf(n) = G|x=N+1G|M.


To evaluate a sum or series:

Examples


To find a discrete antiderivative:

Example

Input:

sum(1/(x*(x+1)),x)

Output:

1
x

Previous Up Next