Functions

sum

Supported By

Syntax

[the] sum of factor

sum ( expression )

Factor and expression yield lists of integers, numbers, or complexes.

Example

get sum(1,2,3,4)

Description

The sum function returns the sum of a list of numeric values passed to it.

If all the values are integers or numbers, a number is returned. If any value is a complex, a complex is returned.

Note

This is the infinite-arity version of the + operator.

See Also

product, pow