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 ::= Q[x,y];
LM(3x^2y+y);
3x^2y
-------------------------------
LM(Vector(2x,y));
Vector(2x, 0)
-------------------------------
LT(Vector(2x,y));
Vector(x, 0)
------------------------------- 


See Also