Macaulay2 » Documentation
Packages » MacaulayPosets :: MaxDegree
next | previous | forward | backward | up | index | toc

MaxDegree -- the maximum degree of a monomial to calculate

Description

For getMons, the function starts at the lowest degree 0 and starts working out the monomials of 0, 1, 2, ... until the number given.

i1 : R = QQ[x,y]

o1 = R

o1 : PolynomialRing
i2 : I = ideal(x^2 - y^2)

            2    2
o2 = ideal(x  - y )

o2 : Ideal of R
i3 : getMons(R, I, MaxDegree=>15)
Ideal is not finite over the base (quotient ring has infinitely many monomials)
Monomials up to degree 15 given

                2          2   3   4     3     4   5   6     5     6   7   8 
o3 = {1, x, y, y , x*y, x*y , y , y , x*y , x*y , y , y , x*y , x*y , y , y ,
     ------------------------------------------------------------------------
        7     8   9   10     9     10   11   12     11     12   13   14 
     x*y , x*y , y , y  , x*y , x*y  , y  , y  , x*y  , x*y  , y  , y  ,
     ------------------------------------------------------------------------
        13     14   15
     x*y  , x*y  , y  }

o3 : List

See also

Functions with optional argument named MaxDegree:

  • getMons(...,MaxDegree=>...)
  • getPoset(...,MaxDegree=>...)

For the programmer

The object MaxDegree is a symbol.


The source of this document is in /build/reproducible-path/macaulay2-1.26.05+ds/M2/Macaulay2/packages/MacaulayPosets.m2:1624:0.