Functions Index :: P :: Product

[<< up one level]

Module:

numeric :: core

Definition:

Product(val x1, val "x2", val "x3", val "x4", ... , val "x20")

Description:

Returns the product of its arguments. [1]

Examples:

v = Product(3, 4, 6) # v is now 72

t = Product(0.5, 0.4, v) # t is now 14.4

z = Product(0.1, 0.2, v, t, t + v, t - v, 0.5)

# z is now 51,597.80

 

[<< top]

 


[1]: The function can handle up to 20 arguments. This number is chosen as a good balance between usability and speed. If more arguments are needed use an array and the ArraySum function, or a suitable function of the array package.