product -- the product of the elements of a list |
Syntax |
product(L: LIST): OBJECT product(L: LIST, InitVal: OBJECT): OBJECT |
Description |
Example |
/**/ use R ::= QQ[x,y]; /**/ product([3, x, y^2]); 3*x*y^2 /**/ product(1..40) = factorial(40); true /**/ product([], y); y /**/ product([3, x], y); 3*x*y |
See Also |