
lmonomial - the leading monomial of a polynomial

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

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

Overloading:

1

Summary:

lmonomial returns the leading monomial 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 lmonomial 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). lmonomial

returns FAIL if the expression cannot be converted into a polynomial. The
result is of the same type as the first argument, e.g. if the argument is
a polynomial then the result is a polynomial too. lmonomial is a kernel
function.

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

      3*x^3

>>  lmonomial(poly(3*x^3+6*x^2*y^2+2, [x,y]), DegreeOrder);

      poly(6*x^2*y^2, [x,y])

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

      poly(0, [x,y])

See also:   lcoeff , lterm , nterms , nthcoeff , nthmonomial , nthterm ,
poly, tcoeff

