MathLib.Polynomial()

MathLib.Polynomial is MathLib's implementation of polynomials.

Properties

.constructor
The function MathLib.Polynomial
.deg
The degree of the polynomial
.type
The string "polynomial"

Methods

.differentiate()
Differentiates the polynomial.
.integrate()
Integrates the polynomial.
.isEqual()
Checks if two polynomials are equal.
.map()
Works like the Array.prototype.map function.
.plus()
Adds two polynomials.
.times()
Multiplies two polynomials.
.toContentMathML()
Returns a content MathML representation of the polynomial as string.
.toFunctn()
Converts the Polynomial to a Functn.
.toLaTeX()
Returns a LaTeX representation of the polynomial as string.
.toMathML()
Returns a presentation MathML representation of the polynomial as string.
.toString()
Returns a representation of the polynomial as string.
.valueAt()
Evaluates the polynomial.