up previous next
LM

the leading monomial of a polynomial or vector

Syntax
LM(P:POLY or VECTOR):same type as P

Description
This function returns the leading monomial of P. 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

/**/  LM(Vector(2*x,y));  --***OBSOLETE MANUAL: WORK IN PROGRESS***
Vector(2*x, 0)

/**/  LT(Vector(2*x,y));  --***OBSOLETE MANUAL: WORK IN PROGRESS***
Vector(x, 0)

See Also