double
Product(
double
[]
values
)
Compute the product of the values.
P
=
x
i
n
i
Example
=
Block
{
ShowProduct
([1, 2, 4, 8, 16]);
ShowProduct
([2, 5, 6, 12, 18]);
};
The product of 1, 2, 4, 8 and 16 is 1024
The product of 2, 5, 6, 12 and 18 is 12960