API Docs for: 0.99.4
Show:

JXG.Math.Poly.Polynomial Class

Defined in: src/math/poly.js:159
Module: JXG

A polynomial is a sum of monomials.

Item Index

Properties

Methods

add

(
  • mp
)

Adds another polynomial or monomial to this one and merges them by checking for the signature of each new monomial in the existing monomials.

addSubMonomial

(
  • m
  • factor
)

Adds a monomial to the polynomial. Checks the existing monomials for the added monomial's signature and just adds the coefficient if one is found.

Parameters:

copy

() JXG.Math.Poly.Polynomial

Creates a deep copy of the polynomial.

findSignature

(
  • sig
)
Number

Find a monomial with the given signature, i.e. exponent vector.

Parameters:

  • sig Array

    An array of numbers

Returns:

Number:

The index of the first monomial with the given signature, or -1 if no monomial could be found.

print

() String

Prints the polynomial.

Returns:

String:

A string representation of the polynomial.

sub

(
  • mp
)

Subtracts another polynomial or monomial from this one and merges them by checking for the signature of each new monomial in the existing monomials.

Properties

monomials

Array

List of monomials.

ring

JXG.Math.Poly.Ring

A polynomial ring.