node-math.js

1.0.6 • Public • Published

node-math.js


NPM version NPM downloads Build Status

npm installnfo

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.

/node-math.js/

    Package Sidebar

    Install

    npm i node-math.js

    Weekly Downloads

    0

    Version

    1.0.6

    License

    Apache License 2.0

    Unpacked Size

    16.4 kB

    Total Files

    6

    Last publish

    Collaborators

    • bhavyadang.codes()