extra-math 1.3.34 → 1.3.37

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/README.md CHANGED
@@ -22,9 +22,7 @@ can be obtained. To calculate the number of ways of *ordering items*, use
22
22
  **Real numbers**: *Range* of a number can be controlled with [constrain],
23
23
  [normalize], or [remap]. Use [lerp] for *linear interpolation* (or extrapolation);
24
24
  [root] for calculating the *n-th root* of a number; and [log] to find the
25
- *logarithm* of a number with a given base. Results of *special mathematical
26
- functions* (approximations) for a given number can be obtained with [erf]
27
- and [erfc].
25
+ *logarithm* of a number with a given base.
28
26
 
29
27
  **Geometry**: Perform conversion from [degrees] to [radians] and vice versa.
30
28
  Find the [magnitude] of a vector or [distance] between two points.
package/index.d.ts CHANGED
@@ -436,4 +436,4 @@ declare function magnitude(xs: number[]): number;
436
436
 
437
437
  declare function distance(xs: number[], ys: number[]): number;
438
438
 
439
- export { aliquotSum, arithmeticMean, binomial, ceil, ceilDiv, constrain as clamp, constrain, cubicMean, degrees, distance, factorial, floor, floorDiv, gcd, geometricMean, harmonicMean, gcd as hcf, isPow, isPrime, lcm, lerp, log, magnitude, remap as map, median, mod, modes, modp, multinomial, nextPow, normalize as norm, normalize, prevPow, product, properDivisors, quadriaticMean, radians, range, rem, remap, root, round, roundDiv, sum, variance };
439
+ export { aliquotSum, arithmeticMean, binomial, ceil, ceilDiv, constrain as clamp, constrain, cubicMean, degrees, distance, factorial, floor, floorDiv, gcd, geometricMean, harmonicMean, gcd as hcf, isPow, isPrime, lcm, lerp, log, magnitude, remap as map, arithmeticMean as mean, median, mod, modes, modp, multinomial, nextPow, normalize as norm, normalize, prevPow, product, properDivisors, quadriaticMean, radians, range, rem, remap, root, quadriaticMean as rootMeanSquare, round, roundDiv, sum, variance };
package/index.js CHANGED
@@ -266,6 +266,7 @@ exports.lerp = lerp;
266
266
  exports.log = log;
267
267
  exports.magnitude = magnitude;
268
268
  exports.map = remap;
269
+ exports.mean = arithmeticMean;
269
270
  exports.median = median;
270
271
  exports.mod = mod;
271
272
  exports.modes = modes;
@@ -283,6 +284,7 @@ exports.range = range;
283
284
  exports.rem = rem;
284
285
  exports.remap = remap;
285
286
  exports.root = root;
287
+ exports.rootMeanSquare = quadriaticMean;
286
288
  exports.round = round;
287
289
  exports.roundDiv = roundDiv;
288
290
  exports.sum = sum;
package/index.mjs CHANGED
@@ -238,4 +238,4 @@ function distance(xs, ys) {
238
238
  return Math.sqrt(a);
239
239
  }
240
240
 
241
- export { aliquotSum, arithmeticMean, binomial, ceil, ceilDiv, constrain as clamp, constrain, cubicMean, degrees, distance, factorial, floor, floorDiv, gcd, geometricMean, harmonicMean, gcd as hcf, isPow, isPrime, lcm, lerp, log, magnitude, remap as map, median, mod, modes, modp, multinomial, nextPow, normalize as norm, normalize, prevPow, product, properDivisors, quadriaticMean, radians, range, rem, remap, root, round, roundDiv, sum, variance };
241
+ export { aliquotSum, arithmeticMean, binomial, ceil, ceilDiv, constrain as clamp, constrain, cubicMean, degrees, distance, factorial, floor, floorDiv, gcd, geometricMean, harmonicMean, gcd as hcf, isPow, isPrime, lcm, lerp, log, magnitude, remap as map, arithmeticMean as mean, median, mod, modes, modp, multinomial, nextPow, normalize as norm, normalize, prevPow, product, properDivisors, quadriaticMean, radians, range, rem, remap, root, quadriaticMean as rootMeanSquare, round, roundDiv, sum, variance };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "extra-math",
3
- "version": "1.3.34",
3
+ "version": "1.3.37",
4
4
  "description": "A collection of common mathematical functions.",
5
5
  "main": "index.js",
6
6
  "module": "index.mjs",
@@ -21,7 +21,9 @@
21
21
  "clamp",
22
22
  "hcf",
23
23
  "map",
24
+ "mean",
24
25
  "norm",
26
+ "rootMeanSquare",
25
27
  "aliquotSum",
26
28
  "arithmeticMean",
27
29
  "binomial",