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

product(Set) -- product of elements

Synopsis

Description

product v yields the product of the elements in the set v.
i1 : a = set select(1..50, isPrime)

o1 = set {2, 3, 5, 37, 7, 41, 43, 11, 13, 47, 17, 19, 23, 29, 31}

o1 : Set
i2 : product a

o2 = 614889782588491410

See also

Ways to use this method: