Macaulay2 » Documentation
Packages » Macaulay2Doc :: product(ZZ,Function)
next | previous | forward | backward | up | index | toc

product(ZZ,Function) -- product of consecutive values of a function

Synopsis

Description

product(n,f) compute the product f(0) * f(1) * ... * f(n-1).

i1 : product(5, i -> 2*i+1)

o1 = 945

See also

Ways to use this method: