0.2.7 • Published 6 years ago
@the.elite/algebra.js v0.2.7
algebra.js
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());2x - 3var eq = new Equation(expr, 4);
console.log(eq.toString());2x - 3 = 4var x = eq.solveFor('x');
console.log('x = ' + x.toString());x = 7/2Read the full documentation at the project site.
Install
Stable Release
npm install algebra.jsLatest Development Release
git clone https://github.com/divyun/algebra.js.git
cd algebra.jsUsage
var algebra = require('./algebra');In the Browser
The following will build algebra.js in the build directory.
make bundleThe following will build algebra.min.js in the build directory.
make minify0.2.7
6 years ago