Build, display, and solve algebraic equations.
See the codevar expr = new Expression("x");
expr = expr.subtract(3);
expr = expr.add("x");
console.log(expr.toString());
2x - 3
var eq = new Equation(expr, 4);
console.log(eq.toString());
2x - 3 = 4
var x = eq.solveFor("x");
console.log("x = " + x.toString());
x = 7/2
Read the full documentation at the project site.
npm install algebra.js
Download algebra.min.js.
git clone https://github.com/nicolewhite/algebra.js.git
cd algebra.js
var algebra = require("./algebra");
The following will build algebra.js in the build directory.
make bundle
The following will build algebra.min.js in the build directory.
make minify
Overall
Maintained
Code review
npm
Latest release
Releases this year
309 followers · starred Aug 2015
157 followers · starred Sep 2015
137 followers · starred Aug 2015
187 followers · starred Sep 2015
Build, display, and solve algebraic equations.
See the codevar expr = new Expression("x");
expr = expr.subtract(3);
expr = expr.add("x");
console.log(expr.toString());
2x - 3
var eq = new Equation(expr, 4);
console.log(eq.toString());
2x - 3 = 4
var x = eq.solveFor("x");
console.log("x = " + x.toString());
x = 7/2
Read the full documentation at the project site.
npm install algebra.js
Download algebra.min.js.
git clone https://github.com/nicolewhite/algebra.js.git
cd algebra.js
var algebra = require("./algebra");
The following will build algebra.js in the build directory.
make bundle
The following will build algebra.min.js in the build directory.
make minify
Overall
Maintained
Code review
npm
Latest release
Releases this year
309 followers · starred Aug 2015
157 followers · starred Sep 2015
137 followers · starred Aug 2015
187 followers · starred Sep 2015