compoly
determine a possible composition of a polynomial
Calling Sequence
Parameters
Description
Examples
compoly(r)
compoly(r, x)
compoly(r, {x, ... })
r
-
polynomial
x
variable on which the composition will be made
The function compoly returns a pair p⁡x, x=q⁡x such that subs(x=q(x), p(x)) is equal to r, the input polynomial. If such a pair cannot be found, it returns FAIL. p⁡x and q⁡x are nonlinear polynomials and q⁡x has a low-degree in x greater or equal to 1.
When compoly is called without additional arguments, it is equivalent to being called with a second argument which is indets(r). When the second argument is a set with more than one variable, then a multivariate composition is attempted. In this case, the result has the same form, but the second polynomial is multivariate, that is, p⁡x, x=q⁡x,.... For the multivariate case, the second polynomial, q⁡x, may be of degree 1.
Note that the composition may not be unique. In particular, if p⁡x, x=q⁡x,... is a composition, then we can find another p⁡x such that replacing q⁡x,... by c⁢q⁡x,…+b will also result in a valid composition. This non-determinacy is eliminated by selecting c and b such that the q polynomial has integer content 1 and its independent term is 0.
compoly⁡x6−9⁢x5+27⁢x4−27⁢x3−2⁢x2⁢y+6⁢x⁢y+1,x
x3−2⁢x⁢y+1,x=x2−3⁢x
compoly⁡x4−3⁢x3−x+5,x
FAIL
compoly⁡x2+2⁢x⁢y−7⁢x+y2−7⁢y+16
x2−7⁢x+16,x=x+y
compoly⁡x4+4⁢x3⁢y3+6⁢x2⁢y6+4⁢x⁢y9+y12+x+y3−1,x,y
x4+x−1,x=y3+x
See Also
indets
polynomials
subs
Download Help Document