ModularEvaluationCategory(PT, MP)ΒΆ
evalut.spad line 177 [edit on github]
ModularEvaluationCategory(PT
, MP
) defines interface to evaluation functions for ModularAlgebraicGcd2
.
- degree: (MP, Symbol) -> NonNegativeInteger
degree(p, v)
computes degree ofp
with respect tov
.
- eval1: (MP, Symbol, Integer, Record(prime: Integer, eval1coeffbuf: U32Vector, eval1expbuf: SortedExponentVector)) -> Union(MP, failed)
eval1(p, v, r, pss)
evaluatesp
with respect to single variablev
atr
.pss
is global state.
- ldegree: (PT, Symbol) -> NonNegativeInteger
ldegree(p, v)
computes degree ofp
with respect tov
.v
must be one of auxiliary variables and must be lexicographically first variable which appears inp
. Moreover,p
must be a polynomial inv
(not a rational function).
- modpreduction: (MP, Integer) -> Union(MP, failed)
modpreduction(p, q)
reduces all coefficients ofp
moduloq
.