degree
degree of a polynomial
ldegree
low degree of a polynomial
Calling Sequence
Parameters
Description
Examples
degree(a, x)
ldegree(a, x)
a
-
any expression
x
(optional) indeterminate or a list or set of indeterminates
If x is a single indeterminate, the degree and ldegree commands compute the degree and low degree, respectively, of the polynomial a in x. If x is not specified then the degree and ldegree commands compute the total degree and total low degree, respectively, of the polynomial a in all of its indeterminates. The definitions for the cases where x is a list or set of indeterminates are given below.
The polynomial a can have negative integer exponents in x. Thus degree and ldegree functions can return a negative or positive integer. If a is not a polynomial in x in this generalized sense, then FAIL is returned.
The identically 0 polynomial is defined to have degree -infinity and ldegree +infinity.
The polynomial a must be in collected form in order for degree/ldegree to return an accurate result. For example, given , degree would not detect the cancellation of the leading term, and would incorrectly return a result of 2. Applying collect with normalization or expand to the polynomial before calling degree avoids this problem.
If x is a set of indeterminates, the total degree/ldegree is computed. If x is a list of indeterminates, then the vector degree/ldegree is computed. Finally, if x is not specified, this is short for degree(a,indets(a)), meaning that the total degree in all the indeterminates is computed. The vector degree is defined as follows:
The total degree is then defined as
Notice that the vector degree is sensitive to the order of the indeterminates, whereas the total degree is not.
Find the total degree of f.
Find the vector degree of f, which is sensitive to the order of the indeterminates.
Examples of non-polynomial inputs
Here collect with normalization is necessary.
See Also
collect
indets
lcoeff
tcoeff
Download Help Document