extra-math 1.2.3 → 1.2.4

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.
package/index.d.ts CHANGED
@@ -161,11 +161,10 @@ declare function variance(...xs: number[]): number;
161
161
  * @param x a number
162
162
  */
163
163
  declare function erf(x: number): number;
164
-
165
164
  /**
166
165
  * TODO: Find the complementary error function value of number (approximation).
167
166
  * @param x a number
168
167
  */
169
168
  declare function erfc(x: number): number;
170
169
 
171
- export { binomial, constrain, erf as default, degrees, dist, erfc, factorial, gcd, lcm, lerp, logb, mag, map, mean, median, mod, modes, modp, multinomial, norm, product, radians, range, rem, root, sum, variance };
170
+ export { binomial, constrain, degrees, dist, erf, erfc, factorial, gcd, lcm, lerp, logb, mag, map, mean, median, mod, modes, modp, multinomial, norm, product, radians, range, rem, root, sum, variance };
package/index.js CHANGED
@@ -186,9 +186,9 @@ function erfc(x) {
186
186
 
187
187
  exports.binomial = binomial;
188
188
  exports.constrain = constrain;
189
- exports["default"] = erf;
190
189
  exports.degrees = degrees;
191
190
  exports.dist = dist;
191
+ exports.erf = erf;
192
192
  exports.erfc = erfc;
193
193
  exports.factorial = factorial;
194
194
  exports.gcd = gcd;
package/index.mjs CHANGED
@@ -180,4 +180,4 @@ function erfc(x) {
180
180
  return y * Math.exp(-x * x + 0.5 * (ERFC_TABLE[I] + z * d) - c);
181
181
  }
182
182
 
183
- export { binomial, constrain, erf as default, degrees, dist, erfc, factorial, gcd, lcm, lerp, logb, mag, map, mean, median, mod, modes, modp, multinomial, norm, product, radians, range, rem, root, sum, variance };
183
+ export { binomial, constrain, degrees, dist, erf, erfc, factorial, gcd, lcm, lerp, logb, mag, map, mean, median, mod, modes, modp, multinomial, norm, product, radians, range, rem, root, sum, variance };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "extra-math",
3
- "version": "1.2.3",
3
+ "version": "1.2.4",
4
4
  "description": "Mathematics is the classification and study of all possible patterns.",
5
5
  "main": "index.js",
6
6
  "module": "index.mjs",
@@ -19,9 +19,9 @@
19
19
  "math",
20
20
  "binomial",
21
21
  "constrain",
22
- "default",
23
22
  "degrees",
24
23
  "dist",
24
+ "erf",
25
25
  "erfc",
26
26
  "factorial",
27
27
  "gcd",