extra-math 1.3.43 → 1.3.45

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 +11 -3
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -28,7 +28,7 @@ can be obtained. To calculate the number of ways of *ordering items*, use
28
28
  Find the [magnitude] of a vector or [distance] between two points.
29
29
 
30
30
  **Statistics**: For a list of numbers, we can calculate the [sum], [product],
31
- [mean]. [median] gives the value lying in the middle when the numbers are
31
+ [arithmeticMean]. [median] gives the value lying in the middle when the numbers are
32
32
  sorted, and [modes] gives the values which are repeated most often. The
33
33
  difference between the largest and the smallest values is the [range].
34
34
  [variance] is a measure of variability of numbers.
@@ -88,14 +88,18 @@ math.lcm(2, 3, 4);
88
88
  | [lerp] | Linearly interpolate a number between two numbers. |
89
89
  | | |
90
90
  | [isPow] | Check if a number is a power-of-n. |
91
- | [prevPow] | Get previous power-of-n of a number. |
92
- | [nextPow] | Find next power-of-n of a number. |
91
+ | [prevPow] | Find largest power-of-n less than or equal to given number. |
92
+ | [nextPow] | Find smallest power-of-n greater than or equal to given number. |
93
93
  | | |
94
94
  | [root] | Find the nth root of a number (ⁿ√). |
95
95
  | [log] | Find the logarithm of a number with a given base. |
96
96
  | | |
97
97
  | [properDivisors] | List all divisors of a number, except itself. |
98
98
  | [aliquotSum] | Sum all proper divisors of a number. |
99
+ | [minPrimeFactor] | Find the least prime number which divides a number. |
100
+ | [maxPrimeFactor] | Find the greatest prime number which divides a number. |
101
+ | [primeFactors] | Find the prime factors of a number. |
102
+ | [primeExponentials] | Find the prime factors and respective exponents of a number. |
99
103
  | [isPrime] | Check if number is prime. |
100
104
  | [gcd] | Find the greatest common divisor of numbers. |
101
105
  | [lcm] | Find the least common multiple of numbers. |
@@ -172,6 +176,10 @@ math.lcm(2, 3, 4);
172
176
  [log]: https://nodef.github.io/extra-math/functions/log.html
173
177
  [properDivisors]: https://nodef.github.io/extra-math/functions/properDivisors.html
174
178
  [aliquotSum]: https://nodef.github.io/extra-math/functions/aliquotSum.html
179
+ [minPrimeFactor]: https://nodef.github.io/extra-math/functions/minPrimeFactor.html
180
+ [maxPrimeFactor]: https://nodef.github.io/extra-math/functions/maxPrimeFactor.html
181
+ [primeFactors]: https://nodef.github.io/extra-math/functions/primeFactors.html
182
+ [primeExponentials]: https://nodef.github.io/extra-math/functions/primeExponentials.html
175
183
  [isPrime]: https://nodef.github.io/extra-math/functions/isPrime.html
176
184
  [gcd]: https://nodef.github.io/extra-math/functions/gcd.html
177
185
  [lcm]: https://nodef.github.io/extra-math/functions/lcm.html
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "extra-math",
3
- "version": "1.3.43",
3
+ "version": "1.3.45",
4
4
  "description": "A collection of common mathematical functions.",
5
5
  "main": "index.js",
6
6
  "module": "index.mjs",