CoCoA:LM

From ApCoCoAWiki

LM

the leading monomial of a polynomial or vector

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 <ttref>LT</ttref>.

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)
-------------------------------

Syntax

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

LC

LPP

LT

   <type>polynomial</type>
   <type>vector</type>