idealMembership(f: SparsePolynomial, polys: readonly SparsePolynomial[], order: MonomialOrder, opts?: Omit<GroebnerBasisOptions, "order" | "reduced">): boolean

Tests exact ideal membership by reducing against a computed Groebner basis.

throws

GroebnerBudgetExceeded Thrown when basis computation exceeds a budget.

Parameters

NameTypeDescription
fSparsePolynomialPolynomial to test.
polysreadonly SparsePolynomial[]Exact integer-coefficient ideal generators.
orderMonomialOrderMonomial order; defaults to LEX.
optsOmit<GroebnerBasisOptions, "order" | "reduced">Pair strategy and deterministic budgets.

Returns

boolean — Whether the normal form of f is zero.