Previous Up Next

6.40.24  Sum of elements of a list: sum add

The sum command adds the elements of a list or sequence of numbers.
add is a synonym for sum.


Example.
Input:

sum(2,3,4,5,6)

Output:

20

Previous Up Next