up previous next
LM

the leading monomial of a polynomial or ModuleElem

Syntax
LM(X: RINGELEM): RINGELEM
LM(X: MODULEELEM): MODULEELEM

Description
This function returns the leading monomial of X . The monomial includes the coefficient. To get the leading term of P , (which does not included the coefficient), use LT .

Example
/**/  use R ::= QQ[x,y];
/**/  LM(3*x^2*y + y);
3*x^2*y

See Also