0.0.1 • Published 3 years ago

calz v0.0.1

Weekly downloads
2
License
ISC
Repository
-
Last release
3 years ago

#For the Developers by a Developer

calz

This package does the "Basic Arithmetic & Sequence Calculation".

  Note : Use more than "one number type arguments", Otherwise it will throw "Error".  

Usage

* Additon Operation

const calz = require('calz');

let result = calz.add(1, 2, 3, 4, 5, 6);

/ it adds the above args within calz.add(), like -> 1 + 2 + 3 + 4 + 5 + 6 = 21 /

console.log(result); // Output: 21

 

* Subtraction Operation

const calz = require('calz');

let result = calz.sub(1, 2, 3, 4, 5, 6);

/ it subtracts the above args within calz.sub(), like -> 1 - 2 - 3 - 4 - 5 - 6 = -19 /

console.log(result); // Output: -19

 

* Multiplication Operation

const calz = require('calz');

let result = calz.mul(4, 2, 3);

/ it multiplies the above args within calz.mul(), like -> 4 2 = 8 3 = 24 /

console.log(result); // Output: 24

 

* Division Operation

const calz = require('calz');

let result = calz.div(720, 2, 3);

/ it divides the above args within calz.div(), like -> 720 / 2 = 360 / 3 = 120 /

console.log(result); // Output: 120

 

* Modulus Operation

const calz = require('calz');

let result = calz.mod(61, 2, 3);

/ it modulus the above args within calz.mod(), like -> 61 % 2 = 1 % 3 = 1 /

console.log(result); // Output: 1

 

* Exponential Operation

const calz = require('calz');

let result = calz.pow(3, 2, 4);

/ it exponents the above args within calz.pow(), like -> 3 2 = 9 4 = 6561 /

console.log(result); // Output: 6561

   

Note:

  This package is under active development for further more complex calcultions.

Thank You for using the "calz" Package.