FactoringUtilities(E, OV, R, P)ΒΆ
facutil.spad line 1 [edit on github]
OV: OrderedSet
R: Ring
P: PolynomialCategory(R, E, OV)
This package provides utilities used by the factorizers which operate on polynomials represented as univariate polynomials with multivariate coefficients.
- completeEval: (SparseUnivariatePolynomial P, List OV, List R) -> SparseUnivariatePolynomial R
completeEval(upoly, lvar, lval)
evaluates the polynomialupoly
with each variable inlvar
replaced by the corresponding value in lval. Substitutions are done for all variables inupoly
producing a univariate polynomial overR
.
- degree: (SparseUnivariatePolynomial P, List OV) -> List NonNegativeInteger
degree(upoly, lvar)
returns a list containing the maximum degree for each variable in lvar.
- lowerPolynomial: SparseUnivariatePolynomial P -> SparseUnivariatePolynomial R
lowerPolynomial(upoly)
convertsupoly
to be a univariate polynomial overR
. An error if the coefficients contain variables.
- normalDeriv: (SparseUnivariatePolynomial P, Integer) -> SparseUnivariatePolynomial P
normalDeriv(poly, i)
computes thei
th derivative ofpoly
divided by i!.
- raisePolynomial: SparseUnivariatePolynomial R -> SparseUnivariatePolynomial P
raisePolynomial(rpoly)
convertsrpoly
from a univariate polynomial overr
to be a univariate polynomial with polynomial coefficients.
- ran: Integer -> R
ran(k)
computes a random integer between-k
andk
as a member ofR
.
- variables: SparseUnivariatePolynomial P -> List OV
variables(upoly)
returns the list of variables for the coefficients ofupoly
.