reduceByBasis(f: SparsePolynomial, basis: readonly SparsePolynomial[], order: MonomialOrder): SparsePolynomial

Reduces a polynomial by a basis or arbitrary reducer set using fraction-free arithmetic.

remarks

This does not compute or verify a Groebner basis. The result is a canonical ideal normal form only when basis is already a basis for the selected order.

Parameters

NameTypeDescription
fSparsePolynomialPolynomial to reduce.
basisreadonly SparsePolynomial[]Reducers, normally a Groebner basis.
orderMonomialOrderMonomial order used to select leading terms.

Returns

SparsePolynomial — The primitive-normalized remainder.