math-library-zero

1.0.2 • Public • Published

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...

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i math-library-zero

      Weekly Downloads

      0

      Version

      1.0.2

      License

      MIT

      Unpacked Size

      1.26 kB

      Total Files

      3

      Last publish

      Collaborators

      • zerotix