Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

solve-quadratic-equation

hnakamur6MIT0.1.0

Solve quadratic equations using a numerical stable method

numerical

readme

solve-quadratic-equation.js

Usage

var solveQuadraticEquation = require('solve-quadratic-equation');
var roots = solveQuadraticEquation(1, -5, 6);
// roots = [2, 3];

See the comment in index.js for detail.

Develop

Setup

npm install
npm install -g mocha
npm install -g webpack
npm install -g gulp

Run tests in a browser

gulp

or

gulp browser-test

Run tests in console

gulp test

License

MIT