up previous next
LC

the leading coefficient of a polynomial or vector
Syntax

LC(F:POLY or VECTOR):C

where C is one of INT, RAT, or ZMOD.


Description
This function returns the leading coefficient of F, as determined by the term-ordering of the ring to which F belongs.

Example
  Use R ::= QQ[x,y];
  LC(x+3x^2-5y^2);
3
-------------------------------
  LC(Vector(0,5y+6x^2,y^2));
6
-------------------------------


See Also