Functional decomposition 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.
polylib::decompose(p,x) returns a sequence
of polynomials q1,
…, qn such
= q1(… qn(x) …).
The second argument may be left out if the polynomial is univariate, as in Example 1.
If a polynomial has several decompositions, it is not specified which of them is returned.
In the simplest case, an univariate polynomial is decomposed with respect to its only variable:
If there are several variables, a main variable must be specified:
Polynomial or polynomial expression
One of the indeterminates of the polynomial
If a decomposition is possible,
it as an expression sequence, each element being of the same type
as the input. If no decomposition is possible, the input is returned.
A description of the algorithm behind
be found in Barton and Zippel, Polynomial decomposition
algorithms, Journal of Symbolic Computation, 1 (1985), pp. 159–168.