Divisors of a polynomial, polynomial expression, or Factored element
MuPAD® notebooks are not recommended. 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.
polylib::divisors(p) computes the set of
all monic divisors of the polynomial or polynomial expression
polylib::divisors(f) returns all monic divisors
of a pre-factored polynomial. Cf. Example 3.
If the argument is a polynomial, a set of polynomials is returned:
polylib::divisors(poly(x^2 - 2*x + 1))
If the argument is a polynomial expression, a set of polynomial expressions is returned:
polylib::divisors(x^2 - 1)
p := factor(poly(x^2 - 1)); polylib::divisors(p)
The polynomials in the resulting set have the same type as the
polynomials in the
p := factor(x^2 - 1); polylib::divisors(p)
polylib::divisors works on polynomials from
P := Dom::Polynomial(Dom::IntegerMod(7)): polylib::divisors(P(x^3 + 2*x^2 + 1))
A polynomial or polynomial expression
Element of a domain of category
polylib::divisors returns a set of polynomials.
The polynomials are from the same type as the polynomials in the argument.