CoCoA:LM

From ApCoCoAWiki
Revision as of 10:02, 24 October 2007 by XMLBot (talk | contribs) (pushing XML rev. 1.46, again)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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>