@mathigon/hilbert
Advanced tools
Comparing version 1.0.8 to 1.0.9
@@ -5,3 +5,2 @@ var __defProp = Object.defineProperty; | ||
var __hasOwnProp = Object.prototype.hasOwnProperty; | ||
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true }); | ||
var __export = (target, all) => { | ||
@@ -11,15 +10,11 @@ for (var name in all) | ||
}; | ||
var __reExport = (target, module2, copyDefault, desc) => { | ||
if (module2 && typeof module2 === "object" || typeof module2 === "function") { | ||
for (let key of __getOwnPropNames(module2)) | ||
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default")) | ||
__defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable }); | ||
var __copyProps = (to, from, except, desc) => { | ||
if (from && typeof from === "object" || typeof from === "function") { | ||
for (let key of __getOwnPropNames(from)) | ||
if (!__hasOwnProp.call(to, key) && key !== except) | ||
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); | ||
} | ||
return target; | ||
return to; | ||
}; | ||
var __toCommonJS = /* @__PURE__ */ ((cache2) => { | ||
return (module2, temp) => { | ||
return cache2 && cache2.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache2 && cache2.set(module2, temp), temp); | ||
}; | ||
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0); | ||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); | ||
@@ -43,2 +38,3 @@ // src/index.ts | ||
}); | ||
module.exports = __toCommonJS(src_exports); | ||
@@ -556,7 +552,7 @@ // src/errors.ts | ||
a = intervalMod(a); | ||
if (a[0] >= Math.PI) | ||
if (a[0] > Math.PI + Number.EPSILON) | ||
return interval.sub(interval.cos(interval.sub(a, [Math.PI, Math.PI]))); | ||
if (a[1] <= Math.PI) | ||
if (a[1] < Math.PI - Number.EPSILON) | ||
return int(Math.cos(a[1]), Math.cos(a[0])); | ||
if (a[1] <= TWO_PI) | ||
if (a[1] < TWO_PI - Number.EPSILON) | ||
return int(-1, Math.max(Math.cos(a[1]), Math.cos(a[0]))); | ||
@@ -569,5 +565,5 @@ return int(-1, 1); | ||
a = intervalMod(a, Math.PI); | ||
if (a[0] >= HALF_PI) | ||
if (a[0] > HALF_PI + Number.EPSILON) | ||
a = interval.sub(a, [Math.PI, Math.PI]); | ||
if (a[0] <= -HALF_PI || a[1] >= HALF_PI) | ||
if (a[0] < -HALF_PI + Number.EPSILON || a[1] > HALF_PI - Number.EPSILON) | ||
return WHOLE; | ||
@@ -1138,3 +1134,2 @@ return int(Math.tan(a[0]), Math.tan(a[1])); | ||
}; | ||
module.exports = __toCommonJS(src_exports); | ||
//# sourceMappingURL=index.cjs.js.map |
@@ -512,7 +512,7 @@ // src/errors.ts | ||
a = intervalMod(a); | ||
if (a[0] >= Math.PI) | ||
if (a[0] > Math.PI + Number.EPSILON) | ||
return interval.sub(interval.cos(interval.sub(a, [Math.PI, Math.PI]))); | ||
if (a[1] <= Math.PI) | ||
if (a[1] < Math.PI - Number.EPSILON) | ||
return int(Math.cos(a[1]), Math.cos(a[0])); | ||
if (a[1] <= TWO_PI) | ||
if (a[1] < TWO_PI - Number.EPSILON) | ||
return int(-1, Math.max(Math.cos(a[1]), Math.cos(a[0]))); | ||
@@ -525,5 +525,5 @@ return int(-1, 1); | ||
a = intervalMod(a, Math.PI); | ||
if (a[0] >= HALF_PI) | ||
if (a[0] > HALF_PI + Number.EPSILON) | ||
a = interval.sub(a, [Math.PI, Math.PI]); | ||
if (a[0] <= -HALF_PI || a[1] >= HALF_PI) | ||
if (a[0] < -HALF_PI + Number.EPSILON || a[1] > HALF_PI - Number.EPSILON) | ||
return WHOLE; | ||
@@ -530,0 +530,0 @@ return int(Math.tan(a[0]), Math.tan(a[1])); |
{ | ||
"name": "@mathigon/hilbert", | ||
"version": "1.0.8", | ||
"version": "1.0.9", | ||
"license": "MIT", | ||
@@ -31,16 +31,16 @@ "homepage": "https://mathigon.io/hilbert", | ||
"@mathigon/core": "1.0.8", | ||
"@mathigon/fermat": "1.0.8" | ||
"@mathigon/fermat": "1.0.9" | ||
}, | ||
"devDependencies": { | ||
"@types/tape": "4.13.2", | ||
"@typescript-eslint/eslint-plugin": "5.13.0", | ||
"@typescript-eslint/parser": "5.13.0", | ||
"esbuild": "0.14.23", | ||
"eslint": "8.10.0", | ||
"@typescript-eslint/eslint-plugin": "5.17.0", | ||
"@typescript-eslint/parser": "5.17.0", | ||
"esbuild": "0.14.30", | ||
"eslint": "8.12.0", | ||
"eslint-plugin-import": "2.25.4", | ||
"tape": "5.5.2", | ||
"ts-node": "10.5.0", | ||
"ts-node": "10.7.0", | ||
"tslib": "2.3.1", | ||
"typescript": "4.6.2" | ||
"typescript": "4.6.3" | ||
} | ||
} |
@@ -167,7 +167,7 @@ // ============================================================================= | ||
a = intervalMod(a); | ||
if (a[0] >= Math.PI) return interval.sub(interval.cos(interval.sub(a, [Math.PI, Math.PI]))); | ||
if (a[0] > Math.PI + Number.EPSILON) return interval.sub(interval.cos(interval.sub(a, [Math.PI, Math.PI]))); | ||
// Now we know that 0 <= a[0] < pi. | ||
if (a[1] <= Math.PI) return int(Math.cos(a[1]), Math.cos(a[0])); | ||
if (a[1] <= TWO_PI) return int(-1, Math.max(Math.cos(a[1]), Math.cos(a[0]))); | ||
// Now we know that 0 < a[0] < pi. | ||
if (a[1] < Math.PI - Number.EPSILON) return int(Math.cos(a[1]), Math.cos(a[0])); | ||
if (a[1] < TWO_PI - Number.EPSILON) return int(-1, Math.max(Math.cos(a[1]), Math.cos(a[0]))); | ||
return int(-1, 1); | ||
@@ -178,4 +178,4 @@ }, | ||
a = intervalMod(a, Math.PI); | ||
if (a[0] >= HALF_PI) a = interval.sub(a, [Math.PI, Math.PI]); | ||
if (a[0] <= -HALF_PI || a[1] >= HALF_PI) return WHOLE; | ||
if (a[0] > HALF_PI + Number.EPSILON) a = interval.sub(a, [Math.PI, Math.PI]); | ||
if (a[0] < -HALF_PI + Number.EPSILON || a[1] > HALF_PI - Number.EPSILON) return WHOLE; | ||
return int(Math.tan(a[0]), Math.tan(a[1])); | ||
@@ -182,0 +182,0 @@ }, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
289272
4027
+ Added@mathigon/fermat@1.0.9(transitive)
- Removed@mathigon/fermat@1.0.8(transitive)
Updated@mathigon/fermat@1.0.9