Macaulay2 » Documentation
Packages » Macaulay2Doc » rings » manipulating polynomials » leadMonomial
next | previous | forward | backward | up | index | toc

leadMonomial -- the leading monomial of a ring element

Description

The leading term is with respect to the monomial ordering in the ring. See monomial orderings for details.

i1 : R = ZZ/5[a,b,c]; f = a*b^2 + 3*b*c^3 + 2;
i3 : leadMonomial f

        3
o3 = b*c

o3 : R
i4 : S = ZZ/5[a,b,c, MonomialOrder => Lex]; g = a*b^2 +3*b*c^3 + 2;
i6 : leadMonomial g

        2
o6 = a*b

o6 : S

See also

Ways to use leadMonomial:

  • leadMonomial(RingElement)
  • leadMonomial(Vector) (missing documentation)

For the programmer

The object leadMonomial is a method function.


The source of this document is in Macaulay2Doc/functions/leadMonomial-doc.m2:35:0.