1.0.0 • Published 1 year ago

math-exec v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

⚙️ Installation

npm i math-exec

CDN Links:

📖 Usage

● Import

// ES6
import mathExec from "math-exec";

// commonjs
const mathExec = require("math-exec");

● Evaluate

mathExec("1 + 2 * 3 / 1");
mathExec("sin(45) ^ 2");
mathExec("2 + 3 % 2");
mathExec("log(10, 100) * 2");

Make sure to console.log() the values!

Operator namesOperator namesOperator names
**+-
*/%
^//log
log10minmax
randomsqrtabs
roundceilfloor
sincostan
asinacosatan
expfloorDivmod
roundTocbrtexpm1
hypotsigntrunc

Support me on PatreonCheck out my socials