extra-math 1.3.5 → 1.3.8

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 (3) hide show
  1. package/README.md +9 -4
  2. package/index.d.ts +4 -2
  3. 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
@@ -60,8 +66,9 @@ math.lcm(2, 3, 4);
60
66
  <br>
61
67
 
62
68
 
63
- ## Reference
69
+ ## References
64
70
 
71
+ - [Yang, Z. H., & Tian, J. F. (2018). An accurate approximation formula for gamma function. Journal of inequalities and applications, 2018(1), 56.](https://doi.org/10.1186/s13660-018-1646-6)
65
72
  - [MathLib by @alawatthe](https://github.com/alawatthe/MathLib)
66
73
  - [Processing Reference](https://processing.org/reference)
67
74
  - [Common mathematical functions by cppreference](https://en.cppreference.com/w/cpp/numeric/math)
@@ -71,7 +78,6 @@ math.lcm(2, 3, 4);
71
78
  - [Permutation](https://en.wikipedia.org/wiki/Permutation)
72
79
  - [Binomial coefficient](https://en.wikipedia.org/wiki/Binomial_coefficient)
73
80
  - [Multinomial distribution](https://en.wikipedia.org/wiki/Multinomial_distribution)
74
- - [Yang, Z. H., & Tian, J. F. (2018). An accurate approximation formula for gamma function. Journal of inequalities and applications, 2018(1), 56.](https://doi.org/10.1186/s13660-018-1646-6)
75
81
 
76
82
  <br>
77
83
  <br>
@@ -80,7 +86,6 @@ math.lcm(2, 3, 4);
80
86
  [![](https://img.youtube.com/vi/dW8Cy6WrO94/maxresdefault.jpg)](https://www.youtube.com/watch?v=dW8Cy6WrO94)
81
87
 
82
88
 
83
- [(1)]: https://en.wikipedia.org/wiki/Walter_Warwick_Sawyer
84
89
  [sum]: https://github.com/nodef/extra-math/wiki/sum
85
90
  [product]: https://github.com/nodef/extra-math/wiki/product
86
91
  [mean]: https://github.com/nodef/extra-math/wiki/mean
package/index.d.ts CHANGED
@@ -179,13 +179,15 @@ declare function gamma(x: number): number;
179
179
  */
180
180
  declare function lgamma(x: number): number;
181
181
  /**
182
- * TODO: Find error function value of number (approximation).
182
+ * Find error function value of number (approximation).
183
183
  * @param x a number
184
+ * @returns erf(x)
184
185
  */
185
186
  declare function erf(x: number): number;
186
187
  /**
187
- * TODO: Find the complementary error function value of number (approximation).
188
+ * Find the complementary error function value of number (approximation).
188
189
  * @param x a number
190
+ * @returns erfc(x)
189
191
  */
190
192
  declare function erfc(x: number): number;
191
193
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "extra-math",
3
- "version": "1.3.5",
3
+ "version": "1.3.8",
4
4
  "description": "Mathematics is the classification and study of all possible patterns.",
5
5
  "main": "index.js",
6
6
  "module": "index.mjs",