Equation.js/lib
2015-04-20 14:25:41 +04:30
..
constats.js move library files to lib 2015-04-20 13:59:59 +04:30
helpers.js move library files to lib 2015-04-20 13:59:59 +04:30
index.js small fix, added tests, readme 2015-04-20 14:25:41 +04:30
operators.js move library files to lib 2015-04-20 13:59:59 +04:30
README.md small fix, added tests, readme 2015-04-20 14:25:41 +04:30
readstream.js move library files to lib 2015-04-20 13:59:59 +04:30

Equation

Solve math expressions or create equations for repeated and complex Math tasks.

// solve
console.log(Equation.solve('4 * lg4 ^ 3')); // 32 

// equations
let sphereArea = Equation.equation('4 * PI * r^2');

console.log(sphereArea(5)); // 314.1592653589793