1.0.2 • Published 3 years ago

math-library-zero v1.0.2

Weekly downloads
1
License
MIT
Repository
-
Last release
3 years ago

Useful math functions

This library is a utility library for using math functions with ease.

Install

npm install useful-math-functions

Usage

const ImprovedMath = require("math-library-zero");
const math = new ImprovedMath();

Then you can call functions on the math variable

Examples

console.log(math.add(5, 4)); // 9
console.log(math.sub(4, 2)); // 2
console.log(math.dist(1, 1, 2, 1)); // 1
console.log(math.circle_area_radius(4)) // 50.24...
console.log(math.circle_area_diamter(8)) // 50.24...