Functions

prod

Supported By

Syntax

[the] prod of factor

prod ( expression )

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

Example

get prod(1,2,3,4)

Description

The prod function returns the product 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.

Synonym

product

See Also

*, sum, pow