Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

math-library-zero

zerotix10MIT1.0.2

A package that gives you access to useful math equations by just using a method

math, utility, math-library, library, math-functions

readme

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