### The Maxima on-line user's manual

Algebra Calculator

#### Sumcontract

Function: sumcontract (<expr>) Combines all sums of an addition that have upper and lower bounds that differ by constants. The result is an expression containing one summation for each set of such summations added to all appropriate extra terms that had to be extracted to form this sum. `sumcontract` combines all compatible sums and uses one of the indices from one of the sums if it can, and then try to form a reasonable index if it cannot use any supplied.

It may be necessary to do an `intosum (<expr>)` before the `sumcontract`.

```(%o1)                                true
(%i2) ```

### Related Examples

##### sumcontract

sumcontract((x*10^y-x...

Calculate

? sumcontract;

Calculate

##### sumcontract-true

sumcontract:true;

sum(x*y*(x+y),x,1,100);

Calculate

##### sumcontract

sumcontract((x*10^y-x...

Calculate

? sumcontract;

Calculate

##### sumcontract-true

sumcontract:true;

sum(x*y*(x+y),x,1,100);

Calculate