Macaulay2 » Documentation
Packages » RandomMonomialIdeals :: Coefficients
next | previous | forward | backward | up | index | toc

Coefficients -- optional input to choose the coefficients of the ambient polynomial ring

Description

Put Coefficients => r for a choice of the ground field r as an argument in the function randomMonomialSet or randomMonomialSets.

i1 : n=2; D=3; p=0.2;
i4 : randomMonomialSet(n,D,p)

       2   2     3
o4 = {x , x x , x }
       1   1 2   2

o4 : List
i5 : ring ideal oo

o5 = QQ[x ..x ]
         1   2

o5 : PolynomialRing
i6 : randomMonomialSet(n,D,p,Coefficients=>ZZ/101)

       2
o6 = {x x }
       1 2

o6 : List
i7 : ring ideal oo

      ZZ
o7 = ---[x ..x ]
     101  1   2

o7 : PolynomialRing

See also

Functions with optional argument named Coefficients :

For the programmer

The object Coefficients is a symbol.