15 lines
294 B
Markdown
15 lines
294 B
Markdown
Equation
|
|
========
|
|
|
|
Solve math expressions or create equations for repeated and complex Math tasks.
|
|
|
|
```javascript
|
|
// solve
|
|
console.log(Equation.solve('4 * lg4 ^ 3')); // 32
|
|
|
|
// equations
|
|
let sphereArea = Equation.equation('4 * PI * r^2');
|
|
|
|
console.log(sphereArea(5)); // 314.1592653589793
|
|
```
|