Functions

product

Supported By

Syntax

[the] product of factor

product ( expression )

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

Example

get product(1,2,3,4)

Description

The product 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

prod

See Also

*, sum, pow