Package Exports
- flo-poly
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 (flo-poly) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
The focus is to find real polynomial roots from degree 2 (quadratic) up to about degree 20 as accurately and as fast as possible, e.g.
FloPoly.allRoots([1, -21, 175, -735, 1624, -1764, 720]); //=> [0.9999999999999997, 2.0000000000000013, 2.9999999999999316, 4.000000000000096, 5.000000000000012, 6.000000000000028]
Documentation, Benchmarks and more
Please visit the site.
Installation
Node (or the browser if you use Browserify)
npm install flo-poly
Browser
Direct
Download the minified script file and include it in your project:
<script src='[path-to-file]/flo-poly.min.js'></script>
There is also a map file and a non-minified version available.
Bower
From the command line, navigate to your project root and type:
bower install flo-poly --save
Include the script in your project:
<script src='bower_components/flo-poly/dist/flo-poly.min.js'></script>
Usage
Node
var FloPoly = require("flo-poly");
Browser
After having included the script file in your HTML there will be a new global viariable available called FloPoly
that represents the library. See the docs.