
lcoeff - the leading coefficient of a polynomial

Calling sequence:
lcoeff(poly [ , order ])
lcoeff(expr [ , indets ]  [ , order ])
indets  ---> [ expr_1 ...]

Parameter:
poly           --  polynomial
expr, expr_1   --  expressions
order          --  optionally LexOrder, DegreeOrder or DegInvLexOrder

Overloading:

1

Summary:

lcoeff returns the leading coefficient of a polynomial.  With the option
order the desired term orderingcan be given. If no order is given then the
lexicographical one is used.

The first argument of lcoeff is allowed to be a polynomial or an expression
and optionally a listof indeterminates.  An expression is converted into
a polynomial in the specified indeterminates (see function poly).  lcoeff

returns FAIL if the expression cannot be converted into a polynomial. lcoeff
is a kernel function.

>>  lcoeff(3*x^3+x^2*y^2+2, [x,y]);

      3

>>  lcoeff(3*x^3+x^2*y^2+2, [x,y], DegreeOrder);

      1

>>  lcoeff(poly(0, [x,y]));

      0

See also:  coeff , degreevec , lterm , nterms , nthcoeff , nthterm , poly,
tcoeff

