cmath-js 5.2.0 → 5.3.0

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
@@ -9,7 +9,8 @@ Implementation of parts of C++'s numerics libraries in TypeScript/JavaScript, in
9
9
  - [`fpclassify`](https://en.cppreference.com/c/numeric/math/fpclassify)
10
10
  - [`frexp`](https://en.cppreference.com/w/c/numeric/math/frexp)
11
11
  - [`hypot`](https://en.cppreference.com/w/cpp/numeric/math/hypot)
12
- - [`iscanonical`](https://en.cppreference.com/w/c/numeric/math/frexp)
12
+ - [`iscanonical`](https://www.open-std.org/jtc1/sc22/wg14/www/docs/n3096.pdf#subsection.7.12.3)
13
+ - [`isinf`](https://en.cppreference.com/w/c/numeric/math/isinf)
13
14
  - [`ldexp`](https://en.cppreference.com/w/c/numeric/math/ldexp)
14
15
  - [`nan`](https://en.cppreference.com/w/c/numeric/math/nan)
15
16
  - [`nextafter`](https://en.cppreference.com/w/c/numeric/math/nextafter)
@@ -1 +1 @@
1
- {"version":3,"file":"hypot.js","sourceRoot":"","sources":["../../../src/namespace-std/doubles/hypot.ts"],"names":[],"mappings":"AAeA,MAAM,UAAU,KAAK,CAAY,CAAS,EAAa,CAAS,EAAa,CAAU;IACtF,IAAI,CAAC,KAAK,SAAS,EAAE,CAAC;QAErB,OAAO,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;IAC5B,CAAC;IACD,IAAI,CAAC,KAAK,QAAQ,IAAI,CAAC,KAAK,CAAC,QAAQ,IAAI,CAAC,KAAK,QAAQ,IAAI,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC;QAC5E,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;YACxB,OAAO,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;QAC3C,CAAC;QACD,OAAO,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IACzB,CAAC;IACD,OAAO,QAAQ,CAAC;AACjB,CAAC"}
1
+ {"version":3,"file":"hypot.js","sourceRoot":"","sources":["../../../src/namespace-std/doubles/hypot.ts"],"names":[],"mappings":"AAgBA,MAAM,UAAU,KAAK,CAAY,CAAS,EAAa,CAAS,EAAa,CAAU;IACtF,IAAI,CAAC,KAAK,SAAS,EAAE,CAAC;QAErB,OAAO,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;IAC5B,CAAC;IACD,IAAI,CAAC,KAAK,QAAQ,IAAI,CAAC,KAAK,CAAC,QAAQ,IAAI,CAAC,KAAK,QAAQ,IAAI,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC;QAC5E,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;YACxB,OAAO,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;QAC3C,CAAC;QACD,OAAO,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IACzB,CAAC;IACD,OAAO,QAAQ,CAAC;AACjB,CAAC"}
@@ -4,6 +4,7 @@ export { fpclassify } from "./fpclassify.ts";
4
4
  export { frexp, type FrexpResult } from "./frexp.ts";
5
5
  export { hypot } from "./hypot.ts";
6
6
  export { iscanonical } from "./iscanonical.ts";
7
+ export { isinf } from "./isinf.ts";
7
8
  export { ldexp } from "./ldexp.ts";
8
9
  export * from "./macros.ts";
9
10
  export { nan } from "./nan.ts";
@@ -4,6 +4,7 @@ export { fpclassify } from "./fpclassify.js";
4
4
  export { frexp } from "./frexp.js";
5
5
  export { hypot } from "./hypot.js";
6
6
  export { iscanonical } from "./iscanonical.js";
7
+ export { isinf } from "./isinf.js";
7
8
  export { ldexp } from "./ldexp.js";
8
9
  export * from "./macros.js";
9
10
  export { nan } from "./nan.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/namespace-std/doubles/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,KAAK,EAAoB,MAAM,YAAY,CAAC;AACrD,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,cAAc,aAAa,CAAC;AAC5B,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AAC/B,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/namespace-std/doubles/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,KAAK,EAAoB,MAAM,YAAY,CAAC;AACrD,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,cAAc,aAAa,CAAC;AAC5B,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AAC/B,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC"}
@@ -0,0 +1 @@
1
+ export declare function isinf(num: number): boolean;
@@ -0,0 +1,4 @@
1
+ export function isinf(num) {
2
+ return num === Infinity || num === -Infinity;
3
+ }
4
+ //# sourceMappingURL=isinf.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isinf.js","sourceRoot":"","sources":["../../../src/namespace-std/doubles/isinf.ts"],"names":[],"mappings":"AAOA,MAAM,UAAU,KAAK,CAAC,GAAW;IAChC,OAAO,GAAG,KAAK,QAAQ,IAAI,GAAG,KAAK,CAAC,QAAQ,CAAC;AAC9C,CAAC"}
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": "5.2.0",
8
+ "version": "5.3.0",
9
9
  "exports": {
10
10
  ".": {
11
11
  "types": "./dist/index.d.ts",