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