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

- randomMonomialSet -- randomly generates a list of monomials in fixed number of variables up to a given degree
- randomMonomialSets -- randomly generates lists of monomials in fixed number of variables up to a given degree
- randomMonomialIdeals -- generates random sets of monomial ideals

## Functions with optional argument named Coefficients:

- `randomMonomialIdeals(...,Coefficients=>...)`
- `randomMonomialSet(...,Coefficients=>...)`
- `randomMonomialSets(...,Coefficients=>...)`

## For the programmer

The object Coefficients is a symbol.

The source of this document is in /build/macaulay2-88fgJW/macaulay2-1.25.11+ds/M2/Macaulay2/packages/RandomMonomialIdeals.m2:1273:0.