npm.io
0.0.10 • Published 8 years ago

mathematic-lib

Licence
ISC
Version
0.0.10
Deps
0
Size
3 kB
Vulns
0
Weekly
0

Build Status

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.

Keywords