A class of simple polynomial functionality including root finding
JavaScript
Switch branches/tags
Clone or download
Pull request Compare This branch is 12 commits behind thelonious:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
test
.gitignore
LICENSE
README.md
index.js
package.json

README.md

kld-polynomial

A class of simple polynomial functionality including root finding

Install

npm install kld-polynomial

Polynomial

  • Polynomial.interpolate
  • eval
  • add
  • multiply
  • divide_scalar
  • simplify
  • bisection
  • toString
  • trapezoid
  • simpson
  • romberg
  • getDegree
  • getDerivative
  • getRoots
  • getRootsInInterval
  • getLinearRoot
  • getQuadraticRoots
  • getCubicRoots
  • getQuarticRoots

SqrtPolynomial

  • inherits from Polynomial
  • eval returns square root of Polynomial.prototype.eval