Degree of a polynomial
MuPAD® notebooks will be removed in a future release. Use MATLAB® live scripts instead.
MATLAB live scripts support most MuPAD functionality, though there are some differences. For more information, see Convert MuPAD Notebooks to MATLAB Live Scripts.
degree(p) returns the total degree of the
degree(p, x) returns the degree of
respect to the variable
If the first argument
f is not element of
a polynomial domain, then
degree converts the expression
internally to a polynomial of type
If a list of indeterminates is specified, the polynomial
(f, vars) is
degree(f, vars, x) returns 0 if
not an element of the list
The degree of the zero polynomial is defined as 0.
The total degree of the terms in the following polynomial expression is computed:
degree(x^3 + x^2*y^2 + 2)
degree may be applied to polynomials of type
degree(poly(x^2*z + x*z^3 + 1, [x, z]))
The next expression is regarded as a bi-variate polynomial in
The degree with respect to
z is computed:
degree(x^2*z + x*z^3 + 1, [x, z], z)
The degree of the zero polynomial is defined as 0:
degree(0, [x, y])
FAIL is returned if the input cannot
be converted to a polynomial.