Previous Up Next

2.37.29  Sum of elements of a list : sum add

sum or add takes as argument a list l (resp sequence) of reals.
sum or add returns the sum of the elements of l.
Input :

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

Output :

20

Previous Up Next