README
Equation 
Solve math expressions or create equations for repeated and complex Math tasks.
To use in browser, download equation.min.js.
A similar library I wrote in Haskell is also available mathexpr
Install using npm:
npm install equations
Examples:
// solve
console.log(Equation.solve('4 * lg(4) ^ 3')); // 32
// equation
let sphereArea = Equation.equation('4 * PI * r^2');
console.log(sphereArea(5)); // 314.1592653589793
let test = Equation.equation('2x + 6y');
console.log(test(4, 3)).to.equal(8 + 18);
You can also register your own operators and constants.
// these options are explained in [`operators.js`](https://github.com/mdibaiee/Equation/blob/master/lib/operators.js).
Equation.registerOperator('