Skip to content

brenboh/piecewise-polynomial

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

NPM package used for evaluating piecewise polynomials

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published