Represents a polynomial as a collection of monomials in a specified ring and using the lex monomial order

Hierarchy

  • Polynomial

Constructors

  • Parameters

    • p: string | Monomial[]

      string representation of the polynomial or monomial collection that form the polynomial

    • vars: string[] = ...

      Generators of the ring in R to which the polynomial belongs

    Returns Polynomial

Properties

monomials: Monomial[] = ...

Monomials forming the polynomial ordered with lex

vars: string[]

Generators of the ring in R to which the polynomial belongs

order: "lex" | "degrevlex" = "lex"

Methods

  • Orders monomials using lex

    Returns void

  • Parses a string to a Polynomial

    Parameters

    • pol: string

      string representation of the polynomial

    Returns void

  • Divide by a set of polynomials fs = [f_1, ..., f_n] using lex

    Returns

    quotients for each polynomial in fs, remainder and steps if verbose

    Parameters

    • fs: Polynomial[]

      polynomials to divide with

    • maxIter: number = 100

      limit of iterations allowed

    • verbose: boolean = false

      should return process steps

    Returns {
        quotients: Polynomial[];
        remainder: Polynomial;
    }

  • Exponent of this polynomial

    Returns Float64Array

  • List of variables of the ring of this polynomial

    Returns string[]

  • Checks if all variables in v are variables of the ring of this polynomial

    Parameters

    • v: string[]

    Returns boolean

  • Inserts new variables before the existing ones to the ring and updates the exponent for every monomial

    Parameters

    • newVars: string[]

      variables to add

    • pos: number = 0

    Returns void

  • Checks if polynomial is equivalent to zero

    Returns boolean

  • Parameters

    • node: any

    Returns string

  • Concatenates new variables to the ring and updates the exponent for every monomial

    Parameters

    • newVars: string[]

      variables to add

    Returns void

  • Remove variables of the ring and updates the exponent for every monomial

    Parameters

    • oldVars: string[]

      variables to remove

    Returns void

  • Second leader coefficient

    Returns Fraction

  • Parameters

    • str: string
    • chars: string[]

    Returns boolean

  • Support of the polynomial

    Returns Float64Array[]

  • String representation of the polynomial using lex

    Parameters

    • showProductChar: boolean = false

    Returns string

  • Checks if all variables in v are used in this polynomial

    Parameters

    • v: string[]

    Returns boolean

  • Checks if any variables in v are used in this polynomial

    Parameters

    • v: string[]

    Returns boolean

  • List of the variables from the ring used by the polynomial

    Returns string[]

  • Computes a reduced Groebner base of I using Buchberger's Algorithm and Criteria

    Parameters

    • F: Polynomial[]

      Generators of the ideal I =

    • maxIter: number = 1000

      maximum iterations

    Returns Polynomial[]

  • Chacks if a>b using lex.

    Parameters

    • a: Float64Array
    • b: Float64Array

    Returns undefined | boolean | -1

  • Checks if a is an integer multiple of b

    Parameters

    • a: Float64Array
    • b: Float64Array

    Returns boolean

  • a-b

    Parameters

    • a: Float64Array
    • b: Float64Array

    Returns Float64Array

Generated using TypeDoc