updecomp.spad line 41 [edit on github]
UnivariatePolynomialDecompositionPackage implements functional decomposition of univariate polynomial with coefficients in an IntegralDomain of CharacteristicZero.
completeDecompose(f) returns a list of factors of f for the functional decomposition of f. [f1, ..., fn] means f = f1 o ... o fn.
decomposeIfCan(f) returns a functional decomposition of the polynomial f or "failed" if it has not found any.
leftFactorIfCan(f, h) returns the left factor (g in f = g o h) of the functional decomposition of the polynomial f with given h or "failed" if g does not exist.
monicCompleteDecompose(f) returns a list of factors of f for the functional decomposition of monic polynomial f. [f1, ..., fn] means f = f1 o ... o fn.
monicDecomposeIfCan(f) returns a functional decomposition of the monic polynomial f or "failed" if it has not found any.
monicRightFactorIfCan(f, d) returns a candidate to be the monic right factor (h in f = g o h) of degree d of a functional decomposition of the polynomial f or "failed" if no such candidate.
rightFactorIfCan(f, d, c) returns a candidate to be the right factor (h in f = g o h) of degree d with leading coefficient c of a functional decomposition of the polynomial f or "failed" if no such candidate.