piecewise-polynomial

1.0.1 • Public • Published

piecewise-polynomial

A library for evaluating piecewise polynomial expressions

install

npm install piecewise-polynomial

usage

let evaluator: PiecewisePolynomial = new PiecewisePolynomial();
 
let poly1 = new Polynomial([2, 1]);
let bounds1 = new Bounds(null, null, -1, '<=');
evaluator.addFunction(poly1, bounds1);
 
console.log('-10', evaluator.evaluateAt(-10)); // = -8

Package Sidebar

Install

npm i piecewise-polynomial

Weekly Downloads

0

Version

1.0.1

License

MIT

Unpacked Size

6.19 kB

Total Files

9

Last publish

Collaborators

  • brenboh