mathematic-lib
v0.0.10
Published
Mathematic library for basic operation
Downloads
4
Readme
mathematic-lib
Library to simplify basic mathematical operation beetween two or more operand (arrays)
Install
npm i mathematic-lib
Basic usage
var mathematicLib = require('mathematic-lib')
mathematicLib.sum(4, 5) // => '9'
mathematicLib.multiply(4, 5) // => '20'
See spec.
Array usage
var mathematicLib = require('mathematic-lib')
var arrays = [2, 5, 10]
mathematicLib.sumArray(arrays) // => '17'
mathematicLib.multiplyArray(arrays) // => '100'
See spec.
Factorial usage
var mathematicLib = require('mathematic-lib')
mathematicLib.factorial(5) // => '120'
See spec.