i1 = product({1 .. 10},i->i)
o1 = 1,2,3,4,5,6,7,8,9,10
o1 : Sequence
product(v,w,f)
-- yields the product of the expressions obtained by
applying f to each of the pairs (i,j) of elements from the lists or
sequences v and w, which should be of the same length.
product(n,f) -- is equivalent to product(0 .. n-1,f) when n is an integerproduct v -- yields the product of the elements of the list v.
See also sum.
Go to main index.
Go to concepts index.