Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/bhavya-dang/node-math.js
- Owner: bhavya-dang
- License: apache-2.0
- Created: 2018-09-17T06:27:33.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-03-24T21:18:58.000Z (almost 6 years ago)
- Last Synced: 2024-04-24T23:38:24.734Z (8 months ago)
- Topics: algebra, eval, javascript, math, mathematics, nodejs, numeric
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/node-math.js
- Size: 73.2 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## node-math.js
## 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.