Package Exports
- kld-polynomial
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (kld-polynomial) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
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