JXG.Math.Poly.Polynomial

Class

Methods

Own

(static) 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.

Parameters

Name Type Description
mp JXG.Math.Poly.Polynomial | JXG.Math.Poly.Monomial

Details

Source
math/poly.js, line 234

(static) 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

Name Type Description
m JXG.Math.Poly.Monomial
factor Number

Either 1 or -1.

Details

Source
math/poly.js, line 216

(static) copy() → {JXG.Math.Poly.Polynomial}

Creates a deep copy of the polynomial.

Returns

Type
JXG.Math.Poly.Polynomial

Details

Source
math/poly.js, line 285

(static) findSignature(sig) → {Number}

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

Parameters

Name Type Description
sig Array

An array of numbers

Returns

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

Type
Number

Details

Source
math/poly.js, line 197

(static) print() → {String}

Prints the polynomial.

Returns

A string representation of the polynomial.

Type
String

Details

Source
math/poly.js, line 301

(static) 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.

Parameters

Name Type Description
mp JXG.Math.Poly.Polynomial | JXG.Math.Poly.Monomial

Details

Source
math/poly.js, line 260

Inherited

none

Parameters

Name Type Description
ring JXG.Math.Poly.Ring

A polynomial ring.

str String

TODO String representation of the polynomial, will be parsed.

Details

Source
math/poly.js, line 151