sxhxliang / algebra.js

Build, display, and solve algebraic equations.

Home Page:http://algebra.js.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

algebra.js

Join the chat at https://gitter.im/nicolewhite/algebra.js

Build Status Coverage Status npm version

var 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 more at the project site.

About

Build, display, and solve algebraic equations.

http://algebra.js.org

License:MIT License


Languages

Language:JavaScript 99.5%Language:Makefile 0.5%