updating oE product


include math.e 
namespace math 
public function product(object a) 

computes the product of all the atom in the argument, no matter how deeply nested.

  1. values : an object, all atoms of which will be multiplied up, no matter how nested.

An atom, the product of all atoms in flatten(values).


This function may be applied to an atom or to all elements of a sequence

Example 1:
a = product({10, 20, 30}) 
-- a is 6000 
a = product({10.5, {11.2} , 8.1}) 
-- a is 952.56 
See Also:

sum, or_all

Not Categorized, Please Help


Quick Links

User menu

Not signed in.

Misc Menu