1.1.18 • Published 3 years ago

extra-math.min v1.1.18

Weekly downloads
3
License
MIT
Repository
github
Last release
3 years ago

Mathematics is the classification and study of all possible patterns. This package includes some common statistics functions. (1) :package: NPM, :smiley_cat: GitHub, :running: RunKit, :vhs: Asciinema, :moon: Minified, :scroll: Files, :newspaper: JSDoc, :blue_book: Wiki.

Stability: Experimental.

This is browserified, minified version of extra-math. It is exported as global variable math. CDN: unpkg, jsDelivr.

const math = require("extra-math");
// import * as math from "extra-math";
// import * as math from "https://unpkg.com/extra-math@1.1.15/index.mjs"; (deno)

math.sum(1, 2, 3, 4);
// 10

math.median(1, 7, 8);
// 7

math.variance(1, 2, 3, 4);
// 1.25

math.lcm(2, 3, 4);
// 12

Index

MethodAction
sumFinds sum of numbers (Σ).
productFinds product of numbers (∏).
meanFinds average of numbers.
medianFinds the value separating the higher and lower halves of numbers.
modesFinds the values that appear most often.
rangeFinds the difference between the largest and smallest values.
varianceFinds the mean of squared deviation of numbers from its mean.
erfFinds error function value of number (approximation).
erfcFinds complementary error function value of number (approximation).
remFinds remainder of x/y with sign of x (truncated division).
modFinds remainder of x/y with sign of y (floored division).
modpFinds remainder of x/y with +ve sign (euclidean division).
gcdFinds greatest common divisor of numbers.
lcmFinds least common multiple of numbers.
binomialFinds ways to choose k elements from a set of n elements.
multinomialFinds ways to put n objects in m bins (n=sum(ki)).

npm.io

1.1.18

3 years ago

1.1.17

3 years ago

1.1.16

3 years ago

1.1.15

3 years ago

1.1.14

3 years ago

1.1.13

3 years ago

1.1.2

3 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.20

4 years ago

1.0.14

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.11

4 years ago

1.0.10

4 years ago

1.0.13

4 years ago

1.0.12

4 years ago

1.0.3

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago

0.0.28

4 years ago

0.0.27

4 years ago

0.0.25

4 years ago

0.0.24

4 years ago

0.0.22

4 years ago

0.0.21

4 years ago

0.0.20

4 years ago

0.0.19

4 years ago

0.0.18

4 years ago

0.0.17

4 years ago

0.0.16

4 years ago

0.0.15

4 years ago

0.0.14

4 years ago

0.0.13

4 years ago