kld-polynomial
v0.3.0
Published
A class of simple polynomial functionality including root finding
Downloads
183,136
Maintainers
Readme
kld-polynomial
A class of simple polynomial functionality including root finding
Installation
npm install kld-polynomial
Importing
The following sections indicate how you can import the code for use in various environments.
Node
import {Polynomial} = require("kld-polynomial");
ESM in Modern Browsers
import {Polynomial} from './node_modules/kld-polynomial/dist/index-esm.js';
Older Browsers
<script src="./node_modules/kld-polynomial/dist/index-umd.js"></script>
<script>
var Polynomial = KldPolynomial.Polynomial;
</script>
Bundlers
import {Polynomial} from "kld-polynomial";
API
Polynomial
- Polynomial.interpolate
- eval
- add
- multiply
- divide_scalar
- simplifyEquals
- bisection
- toString
- trapezoid
- simpson
- romberg
- getDegree
- getDerivative
- getRoots
- getRootsInInterval
- getLinearRoot
- getQuadraticRoots
- getCubicRoots
- getQuarticRoots