math-pro

Math pro is an extensive math library to do basic math calculations, sort and search functions.


Keywords
math, search, sort, big-number, number, lib, mathematics, nodejs, npm, npm-package, package
License
MIT
Install
npm install math-pro@1.1.0

Documentation

img

npm install size stars npm total downloads Website

Introduction

Math Pro is an extensive math library which will help you to do the basic calculation of math. Besides basic calculation you can also do the sort like sort, search. Some number properties of math have also included here. If you fear math then this library is for you.

Features

  • Support numbers, big numbers, arrays
  • Is compatible with JavaScript's built-in functions.
  • Popular sort methods
  • Popular search methods
  • Open source

Download and usage

To use this package you need to install it from npm. In your project directory write the following command to get the package -

npm i math-pro

After installation you need to import the package in your .js file.

import in ES5 format

import full module

const mt = require("math-pro");

console.log(mt.addition(2, 4, 5, 6));

// 17

import specific module

const mt = require('math-pro/lib/basic');

console.log(mt.addition(5,6));

// 11

import in ES6 format

import mt from 'math-pro'

console.log(mt.addition(2, 4, 5, 6));

// 17

N.B: You may encounter an issue when importing as ES6 format. To fix the issue in your package.json file add "type": "module"

Contributors


Zubayer Himel

Twitter Follow

Jinnatul Islam

Twitter Follow

License

The project is licensed under MIT

Please give us a if you like our work 😃