up previous next
LC

the leading coefficient of a polynomial or ModuleElem

Syntax
LC(F: RINGELEM|MODULEELEM): RINGELEM

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 +3*x^2 -5*y^2);
3

/**/  F := NewFreeModule(R,3);
/**/  LC(ModuleElem(F, [0, 5*y+6*x^2, y^2]));
6

See Also