cmath-js 1.0.8 → 1.0.11
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 +13 -10
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2,18 +2,21 @@
|
|
|
2
2
|
Implementations of some of C's math functions in TypeScript/JavaScript.
|
|
3
3
|
|
|
4
4
|
## Floating-point functions
|
|
5
|
-
- copysign
|
|
6
|
-
- fabs
|
|
7
|
-
- frexp
|
|
8
|
-
- hypot
|
|
9
|
-
- ldexp
|
|
10
|
-
- nextafter
|
|
11
|
-
- pow
|
|
12
|
-
- signbit
|
|
5
|
+
- [`copysign`](https://en.cppreference.com/w/c/numeric/math/copysign)
|
|
6
|
+
- [`fabs`](https://en.cppreference.com/w/c/numeric/math/fabs)
|
|
7
|
+
- [`frexp`](https://en.cppreference.com/w/c/numeric/math/frexp)
|
|
8
|
+
- [`hypot`](https://en.cppreference.com/w/cpp/numeric/math/hypot)¹
|
|
9
|
+
- [`ldexp`](https://en.cppreference.com/w/c/numeric/math/ldexp)
|
|
10
|
+
- [`nextafter`](https://en.cppreference.com/w/c/numeric/math/nextafter)
|
|
11
|
+
- [`pow`](https://en.cppreference.com/w/c/numeric/math/pow)
|
|
12
|
+
- [`signbit`](https://en.cppreference.com/w/c/numeric/math/signbit)
|
|
13
|
+
|
|
14
|
+
### Notes
|
|
15
|
+
1: `hypot` is the C++ version which works just like the C version but accepts an optional third value.
|
|
13
16
|
|
|
14
17
|
## Integer functions
|
|
15
|
-
|
|
16
|
-
- abs
|
|
18
|
+
This function accepts either a `number` or a `bigint`:
|
|
19
|
+
- [`abs`](https://en.cppreference.com/w/c/numeric/math/abs)
|
|
17
20
|
|
|
18
21
|
## Test coverage
|
|
19
22
|
The test coverage is a perfect 100% and enforced by the publishing and pull request verification workflows.
|