- div([...numbers]) ⇒
number
Divides a series or array of numbers
- mult([...numbers]) ⇒
number
Multiplies a series or array of numbers
- sub([...numbers]) ⇒
number
Subtracts a series or array of numbers
- sum([...numbers]) ⇒
number
Sums a series or array of numbers
Divides a series or array of numbers
Kind: global function
Returns: number
- Returns the serial division of the numbers passed
Param | Type | Description |
---|---|---|
[...numbers] | Array.<number> |
A series or array of numbers |
Example
div(1, 3, 4) // 8
div([3, 6]) // 9
div() // 0
Multiplies a series or array of numbers
Kind: global function
Returns: number
- Returns the product of the numbers passed
Param | Type | Description |
---|---|---|
[...numbers] | Array.<number> |
A series or array of numbers |
Example
mult(1, 3, 4) // 8
mult([3, 6]) // 9
mult() // 0
Subtracts a series or array of numbers
Kind: global function
Returns: number
- Returns the difference of the numbers passed
Param | Type | Description |
---|---|---|
[...numbers] | Array.<number> |
A series or array of numbers |
Example
sub(9, 5, 2) // 2
sub([6, 3]) // 3
sub() // 0
Sums a series or array of numbers
Kind: global function
Returns: number
- Returns the sum of the numbers passed
Param | Type | Description |
---|---|---|
[...numbers] | Array.<number> |
A series or array of numbers |
Example
sum(1, 3, 4) // 8
sum([3, 6]) // 9
sum() // 0