[top][index]
search for:

product Set -- product of elements

Synopsis:

  • Function: product
  • Input:
  • an instance of class Set.
  • 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:

  • product
  • Code:

         -- ../../../Macaulay2/m2/set.m2:54
         product Set := s -> product toList s

    [top][index]
    search for: