extra-math 1.3.7 → 1.3.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +10 -37
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -7,6 +7,12 @@ This package includes some common statistics functions.<br>
7
7
 
8
8
  Mathematics is the classification and study of all possible patterns. [(1)]
9
9
 
10
+ This package is available in both *Node.js* and *Web* formats. The web format is
11
+ exposed as `extra_math` standalone variable and can be loaded from [jsDelivr CDN].
12
+
13
+ [(1)]: https://en.wikipedia.org/wiki/Walter_Warwick_Sawyer
14
+ [jsDelivr CDN]: https://cdn.jsdelivr.net/npm/extra-math.web/index.js
15
+
10
16
  > Stability: [Experimental](https://www.youtube.com/watch?v=L1j93RnIxEo).
11
17
 
12
18
  <br>
@@ -15,7 +21,7 @@ Mathematics is the classification and study of all possible patterns. [(1)]
15
21
  ```javascript
16
22
  const math = require('extra-math');
17
23
  // import * as math from "extra-math";
18
- // import * as math from "https://unpkg.com/extra-math@1.1.15/index.mjs"; (deno)
24
+ // import * as math from "https://unpkg.com/extra-math/index.mjs"; (deno)
19
25
 
20
26
  math.sum(1, 2, 3, 4);
21
27
  // 10
@@ -36,25 +42,8 @@ math.lcm(2, 3, 4);
36
42
 
37
43
  ## Index
38
44
 
39
- | Method | Action |
40
- | ------------- | ------------------------------------------------------------------- |
41
- | [sum] | Finds sum of numbers (Σ).
42
- | [product] | Finds product of numbers (∏).
43
- | [mean] | Finds average of numbers.
44
- | [median] | Finds the value separating the higher and lower halves of numbers.
45
- | [modes] | Finds the values that appear most often.
46
- | [range] | Finds the difference between the largest and smallest values.
47
- | [variance] | Finds the mean of squared deviation of numbers from its mean.
48
- | [erf] | Finds error function value of number (approximation).
49
- | [erfc] | Finds complementary error function value of number (approximation).
50
- | |
51
- | [rem] | Finds remainder of x/y with sign of x (truncated division).
52
- | [mod] | Finds remainder of x/y with sign of y (floored division).
53
- | [modp] | Finds remainder of x/y with +ve sign (euclidean division).
54
- | [gcd] | Finds greatest common divisor of numbers.
55
- | [lcm] | Finds least common multiple of numbers.
56
- | [binomial] | Finds ways to choose k elements from a set of n elements.
57
- | [multinomial] | Finds ways to put n objects in m bins (n=sum(ki)).
45
+ | Property | Description |
46
+ | ---- | ---- |
58
47
 
59
48
  <br>
60
49
  <br>
@@ -80,20 +69,4 @@ math.lcm(2, 3, 4);
80
69
  [![](https://img.youtube.com/vi/dW8Cy6WrO94/maxresdefault.jpg)](https://www.youtube.com/watch?v=dW8Cy6WrO94)
81
70
 
82
71
 
83
- [(1)]: https://en.wikipedia.org/wiki/Walter_Warwick_Sawyer
84
- [sum]: https://github.com/nodef/extra-math/wiki/sum
85
- [product]: https://github.com/nodef/extra-math/wiki/product
86
- [mean]: https://github.com/nodef/extra-math/wiki/mean
87
- [median]: https://github.com/nodef/extra-math/wiki/median
88
- [modes]: https://github.com/nodef/extra-math/wiki/modes
89
- [range]: https://github.com/nodef/extra-math/wiki/range
90
- [variance]: https://github.com/nodef/extra-math/wiki/variance
91
- [gcd]: https://github.com/nodef/extra-math/wiki/gcd
92
- [lcm]: https://github.com/nodef/extra-math/wiki/lcm
93
- [binomial]: https://github.com/nodef/extra-math/wiki/binomial
94
- [multinomial]: https://github.com/nodef/extra-math/wiki/multinomial
95
- [erf]: https://github.com/nodef/extra-math/wiki/erf
96
- [erfc]: https://github.com/nodef/extra-math/wiki/erfc
97
- [rem]: https://github.com/nodef/extra-math/wiki/rem
98
- [mod]: https://github.com/nodef/extra-math/wiki/mod
99
- [modp]: https://github.com/nodef/extra-math/wiki/modp
72
+ [a]: https://nodef.github.io/extra-math/modules.html#sum
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "extra-math",
3
- "version": "1.3.7",
3
+ "version": "1.3.10",
4
4
  "description": "Mathematics is the classification and study of all possible patterns.",
5
5
  "main": "index.js",
6
6
  "module": "index.mjs",