Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/bhavya-dang/node-math.js

A simple math library for NodeJS and JavaScript.
https://github.com/bhavya-dang/node-math.js

algebra eval javascript math mathematics nodejs numeric

Last synced: 30 days ago
JSON representation

A simple math library for NodeJS and JavaScript.

Awesome Lists containing this project

README

        

## node-math.js





NPM version
NPM downloads
Build Status



npm installnfo



### A simple math library for NodeJS and JavaScript.

## Installation

```bash
$ npm install node-math.js
```

## Dependencies

```bash
$ npm install
```

## Examples

```js
// 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.