UnivariatePolynomialDecompositionPackage(R, UP)¶
updecomp.spad line 41 [edit on github]
UnivariatePolynomialDecompositionPackage implements functional decomposition of univariate polynomial with coefficients in an IntegralDomain
of CharacteristicZero
.
- completeDecompose: UP -> List UP if R has Field
completeDecompose(f)
returns a list of factors off
for the functional decomposition off
. [f1
, …,fn
] meansf
=f1
o
…o
fn
.
- decomposeIfCan: UP -> Union(Record(left: UP, right: UP), failed) if R has Field
decomposeIfCan(f)
returns a functional decomposition of the polynomialf
or “failed” if it has not found any.
- leftFactorIfCan: (UP, UP) -> Union(UP, failed)
leftFactorIfCan(f, h)
returns the left factor (g
inf
=g
o
h
) of the functional decomposition of the polynomialf
with givenh
or"failed"
ifg
does not exist.
- monicCompleteDecompose: UP -> List UP
monicCompleteDecompose(f)
returns a list of factors off
for the functional decomposition of monic polynomialf
. [f1
, …,fn
] meansf
=f1
o
…o
fn
.
- monicDecomposeIfCan: UP -> Union(Record(left: UP, right: UP), failed)
monicDecomposeIfCan(f)
returns a functional decomposition of the monic polynomialf
or “failed” if it has not found any.
- monicRightFactorIfCan: (UP, NonNegativeInteger) -> Union(UP, failed)
monicRightFactorIfCan(f, d)
returns a candidate to be the monic right factor (h
inf
=g
o
h
) of degreed
of a functional decomposition of the polynomialf
or"failed"
if no such candidate.
- rightFactorIfCan: (UP, NonNegativeInteger, R) -> Union(UP, failed)
rightFactorIfCan(f, d, c)
returns a candidate to be the right factor (h
inf
=g
o
h
) of degreed
with leading coefficientc
of a functional decomposition of the polynomialf
or"failed"
if no such candidate.