Newton's Principia Mathematica
Miss any of our Open RFC calls?Watch the recordings here! »

solve-quadratic

1.0.1 • Public • Published

A quadratic equation solver.

Syntax:

var solve = require('solve-quadratic');
var ans = solve('-2x^2 - 3x + 2 = 0');

console.log(ans);

If you find yourself with an imaginary number exception, it means that the quadratic equation you got cannot be solved.

Try it live here

Install

npm i solve-quadratic

DownloadsWeekly Downloads

1

Version

1.0.1

License

ISC

Last publish

Collaborators

  • avatar