node-math.js
v1.0.6
Published
A simple math library for NodeJS and JavaScript.
Downloads
3
Maintainers
Readme
node-math.js
A simple math library for NodeJS and JavaScript.
Installation
$ npm install node-math.js
Dependencies
$ npm install
Examples
// Require
const math = require("node-math.js");
// functions
math.circleArea(4);
// Answer: 50.2857143
math.recArea(4, 2) // 4 is length and 2 is breadth.
// Answer: 8
// METHODS
math.circleArea(radius);
math.circlePer(radius);
math.recArea(length, breadth);
math.recPer(length, breadth);
math.ceil(number);
math.sqPer(side);
math.sqArea(side);
math.eval(string);
math.add(a, b);
math.sub(a, b);
math.prod(a, b);
math.div(a, b);
math.floor(number);
math.random();
math.round(n);
License
© Bhavya Dang, 2018 Released under the Apache License 2.0.