eliminate(polys: readonly SparsePolynomial[], vars: readonly string[], keepVars: readonly string[], opts?: Omit<GroebnerBasisOptions, "order">): SparsePolynomial[]

Computes the part of the ideal that lies in the polynomial ring generated by keepVars.

throws

GroebnerBudgetExceeded Thrown when a configured budget is exceeded.

Parameters

NameTypeDescription
polysreadonly SparsePolynomial[]Exact integer-coefficient generators.
varsreadonly string[]All variables in exponent-index order. Variables to eliminate must precede retained variables for lexicographic elimination.
keepVarsreadonly string[]Variables to retain, expected to be a suffix of vars.
optsOmit<GroebnerBasisOptions, "order">Reduction, pair strategy, and budgets; order is always LEX.

Returns

SparsePolynomial[] — New basis polynomials involving only retained variables.