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

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
polysMultiPoly[]Exact integer-coefficient generators.
varsstring[]All variables in exponent-index order. Variables to eliminate must precede retained variables for lexicographic elimination.
keepVarsstring[]Variables to retain, expected to be a suffix of `vars`.
optsOmit<GroebnerBasisOptions, "order">Reduction, pair strategy, and budgets; order is always `LEX`.

Returns

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