next | previous | forward | backward | up | top | index | toc | Macaulay2 web site
Macaulay2Doc :: product(VisibleList,Function)

product(VisibleList,Function) -- product of values of a function

Synopsis

Description

product(v,f) yields the product of the expressions obtained by applying f to each of the elements of the list or sequence v.

i1 : product(1 .. 5, i -> i^2)

o1 = 14400

See also