Sum
Sum[ var -> expr, n1, n2 ]
Sum[ var -> expr, n1, n2 ] calculates a sum for a mapping var -> expr for given bound, with lower bound n1 and upper bound n2.
| Example | in | out |
|---|---|---|
The sum of 2x for x=1 to 20. |
Sum[ x -> 2x, 1, 10 ] |
110 |
Sum[ var -> expr, n1, n2 ] calculates a sum for a mapping var -> expr for given bound, with lower bound n1 and upper bound n2.
| Example | in | out |
|---|---|---|
The sum of 2x for x=1 to 20. |
Sum[ x -> 2x, 1, 10 ] |
110 |