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, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47}

o1 : Set
i2 : product a

o2 = 614889782588491410

See also

Ways to use this method: