next | previous | forward | backward | up | top | index | toc | Macaulay2 website
Macaulay2Doc :: product(VirtualTally)

product(VirtualTally) -- product of elements

Synopsis

Description

product v yields the product of the elements in the tally v.

i1 : a = tally{2,2,2,2,2,3,3,3,5,5}

o1 = Tally{2 => 5}
           3 => 3
           5 => 2

o1 : Tally
i2 : product a

o2 = 21600

See also

Ways to use this method: