This is a fork of https://github.com/nicolewhite/algebra.js.
Quick Start
var expr = new Expression('x'); expr = expr.subtract(3); expr = expr.add('x'); console.log(expr.toString());
var eq = new Equation(expr, 4); console.log(eq.toString());
var x = eq.solveFor('x'); console.log('x = ' + x.toString());
Read the full documentation at the project site.
Install
Stable Release
Latest Development Release
git clone https://github.com/divyun/algebra.js.git
cd algebra.js
Usage
var algebra = require('./algebra');
In the Browser
The following will build algebra.js in the build directory.
The following will build algebra.min.js in the build directory.