quintex

1.2.25 • Public • Published

$Quintex

On your command line, run the following commands:

npm install quintex

Write the following code in your Node.JS server JavaScript file:

const $ = require("quintex");

Documentation:

Math

The Quintex Math library gives you access to a wide variety of math Functions

const $ = require("quintex");

$.math.add([2, 3, 5, 7]);                  // 17
$.math.sub(4, 5);                          // -1
$.math.mult([2, 3, 5, 7]);                 // 210
$.math.div(6, 3);                          // 2
$.math.pow(2, 4);                          // 16
$.math.tpow(5);                            // 100000
$.math.percOf(7);                          // 0.07

$.math.add()

Parameters:

  • numbers : [Number]
$.math.add([1, 2, 3, 4, 5]);
// 15
$.math.add([4, 7, 2, 5, 3]);
// 21

$.math.sub()

  • Parameters:
  • num1 : Number
  • num2 : Number
  • Result: num1-num2
$.math.sub(5, 2);
// 3
$.math.sub(4, 10);
// -6

$.math.mult()

  • Parameters:
  • numbers : [Number]
$.math.mult([5, 2, 3, 2]);
// 60
$.math.mult([9, 3, 5]);
// 135

$.math.div()

  • Parameters:
  • num1 : Number
  • num2 : Number
  • Result: num1/num2
$.math.div(6, 2);
// 3
$.math.div(5, 3);
// 1.6666666666666667

$.math.pow()

  • Parameters:
  • num1 : Number
  • num2 : Number
  • Result: num1^num2
$.math.pow(2, 4);
// 16
$.math.pow(3, 7);
// 2187

$.math.tpow()

  • Parameters:
  • ex : Number
  • Result: 10^ex
$.math.tpow(2);
// 100
$.math.tpow(8);
// 100000000

$.math.percOf()

  • Parameters:
  • base : Number
  • of : Number
  • Result: base% * of
$.math.percOf(10, 100);
// 10
$.math.percOf(53, 2934);
// 1555.02

$.math.sq()

  • Parameters:
  • num : Number
  • Result: num^2
$.math.sq(10);
// 100
$.math.sq(341);
// 116281

$.math.cb()

  • Parameters:
  • num : Number
  • Result: num^3
$.math.cb(3);
// 27
$.math.cb(41);
// 68921

$.math.rcp()

  • Parameters:
  • num : Number
  • Result: 1/num
$.math.rcp(4);
// 0.25
$.math.rcp(100);
// 0.01

$.math.eX()

  • Parameters:
  • num : Number
  • Result: e^num
$.math.eX(4);
// 54.59815003314423
$.math.eX(100);
// 2.6881171418161212e+43

$.math.sqrt()

  • Parameters:
  • num : Number
  • Result: √(num)
$.math.sqrt(4);
// 2
$.math.eX(16);
// 4

$.math.cbrt()

  • Parameters:
  • num : Number
  • Result: ³√(num)
$.math.cbrt(8);
// 2
$.math.cbrt(729);
// 9

$.math.log()

  • Parameters:
  • x : Number
  • num : Number
  • Result: log(num)
$.math.log(4, 78);
// 3.1427011094311244
$.math.log(10, 100);
// 2

$.math.log10()

  • Parameters:
  • num : Number
  • Result: log₁₀(num)
$.math.log(728);
// 2.8621313793130367
$.math.log(100000000);
// 8

$.math.log2()

  • Parameters:
  • num : Number
  • Result: log₂(num)
$.math.log2(2194);
// 11.099347810403193
$.math.log2(16384);
// 14

$.math.ln()

  • Parameters:
  • num : Number
  • Result: ln(num)
$.math.ln(213);
// 5.3612921657094255
$.math.log2(1244);
// 7.126087273299125

Unavailable

This $Quintex folder is currently empty. We will update this folder soon.

Package Sidebar

Install

npm i quintex

Weekly Downloads

1

Version

1.2.25

License

ISC

Unpacked Size

26.1 kB

Total Files

4

Last publish

Collaborators

  • xprocode