extra-math 1.3.25 → 1.3.26
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 +7 -11
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -75,23 +75,21 @@ math.lcm(2, 3, 4);
|
|
|
75
75
|
| [factorial] | Find the factorial of a number. |
|
|
76
76
|
| [binomial] | Find the number of ways to choose k elements from a set of n elements. |
|
|
77
77
|
| [multinomial] | Find the number of ways to put n objects in m bins (n=sum(kᵢ)). |
|
|
78
|
-
|
|
|
78
|
+
| | |
|
|
79
79
|
| [constrain] | Constrain a number within a minimum and a maximum value. |
|
|
80
|
-
| [
|
|
81
|
-
| [
|
|
80
|
+
| [normalize] | Normalize a number from its current range into a value between 0 and 1. |
|
|
81
|
+
| [remap] | Re-map a number from one range to another. |
|
|
82
82
|
| [lerp] | Linearly interpolate a number between two numbers. |
|
|
83
83
|
| [root] | Find the nth root of a number (ⁿ√). |
|
|
84
84
|
| [log] | Find the logarithm of a number with a given base. |
|
|
85
|
-
| [gamma] | Compute the gamma function of a number (Γ). |
|
|
86
|
-
| [lgamma] | Compute the natural logarithm of the absolute value of the gamma function of a number (log-Γ). |
|
|
87
85
|
| [erf] | Find error function value of number (approximation). |
|
|
88
86
|
| [erfc] | Find the complementary error function value of number (approximation). |
|
|
89
|
-
|
|
|
87
|
+
| | |
|
|
90
88
|
| [degrees] | Convert radians to degrees. |
|
|
91
89
|
| [radians] | Convert degrees to radians. |
|
|
92
90
|
| [magnitude] | Calculate the magnitude (length) of a vector. |
|
|
93
91
|
| [distance] | Calculate the distance between two points. |
|
|
94
|
-
|
|
|
92
|
+
| | |
|
|
95
93
|
| [sum] | Find the sum of numbers (Σ). |
|
|
96
94
|
| [product] | Find the product of numbers (∏). |
|
|
97
95
|
| [mean] | Find the average of numbers. |
|
|
@@ -137,11 +135,9 @@ math.lcm(2, 3, 4);
|
|
|
137
135
|
[constrain]: https://nodef.github.io/extra-math/modules.html#constrain
|
|
138
136
|
[root]: https://nodef.github.io/extra-math/modules.html#root
|
|
139
137
|
[log]: https://nodef.github.io/extra-math/modules.html#log
|
|
140
|
-
[
|
|
141
|
-
[
|
|
138
|
+
[normalize]: https://nodef.github.io/extra-math/modules.html#normalize
|
|
139
|
+
[remap]: https://nodef.github.io/extra-math/modules.html#remap
|
|
142
140
|
[lerp]: https://nodef.github.io/extra-math/modules.html#lerp
|
|
143
|
-
[gamma]: https://nodef.github.io/extra-math/modules.html#gamma
|
|
144
|
-
[lgamma]: https://nodef.github.io/extra-math/modules.html#lgamma
|
|
145
141
|
[erf]: https://nodef.github.io/extra-math/modules.html#erf
|
|
146
142
|
[erfc]: https://nodef.github.io/extra-math/modules.html#erfc
|
|
147
143
|
[degrees]: https://nodef.github.io/extra-math/modules.html#degrees
|