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.
Files changed (2) hide show
  1. package/README.md +13 -10
  2. 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
- These accept either a `number` or a `bigint`:
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.
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/oskarlh/cmath-js.git"
7
7
  },
8
- "version": "1.0.8",
8
+ "version": "1.0.11",
9
9
  "main": "dist/index.js",
10
10
  "types": "dist/index.d.ts",
11
11
  "type": "module",