arraylib::Product

Command: arraylib::Product


Description

Returns the product of all elements in the array. The array is expected
to contain only numbers and is flattened before the computation.

Parameters

[array]: array of numbers

Author
R Kupper

Availability
library "arraylib"

Synopsis
[array] Product -> number

Examples

[1 2 3 4] Product -> 24
[1 2 3 4.0] Product -> 24.0

File
lib/sli/arraylib.sli
Remarks

The array must contain no other elements than numbers.
The return type (integer or double) depends on the type of elements.