JavaScript / TypeScript API

nerdamer/advanced

Advanced symbolic tools including complex values and Gröbner-basis operations.

Direct npm import. The items on this page are JavaScript / TypeScript exports from nerdamer/advanced. For functions used inside nerdamer('...'), see Nerdamer Notation.
18 exports

Functions

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

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

Groebner(polys: readonly SparsePolynomial[], order: MonomialOrder, reduced: boolean): SparsePolynomial[]Function

Computes a Groebner basis for exact sparse integer polynomials. The input polynomials must belong to the same ring. With reduced: true, the basis is interreduced, coefficient content is removed, leading signs are normalized, and exact monic normalization is applied when possible. Results are sorted deterministically and the supplied polynomials are not modified.

groebnerBasisWithOptions(polys: readonly SparsePolynomial[], opts?: GroebnerBasisOptions): SparsePolynomial[]Function

Computes a Groebner basis with ordering, strategy, and budget control.

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

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

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

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

solveRationalSystem(polys: readonly SparsePolynomial[], vars: readonly string[], opts?: Omit<GroebnerBasisOptions, "order" | "reduced">): RationalSolution[]Function

Solves a zero-dimensional polynomial system for rational coordinates.

Classes

Types

APIs