This commit is contained in:
hatuhn
2019-09-13 09:45:04 +07:00
parent f14a34ba19
commit 558fb07261
16790 changed files with 0 additions and 1642370 deletions

View File

@@ -1,10 +0,0 @@
"use strict";
if (!require("./is-implemented")()) {
Object.defineProperty(Math, "cosh", {
value: require("./shim"),
configurable: true,
enumerable: false,
writable: true
});
}

View File

@@ -1,3 +0,0 @@
"use strict";
module.exports = require("./is-implemented")() ? Math.cosh : require("./shim");

View File

@@ -1,7 +0,0 @@
"use strict";
module.exports = function () {
var cosh = Math.cosh;
if (typeof cosh !== "function") return false;
return cosh(1) === 1.5430806348152437;
};

View File

@@ -1,11 +0,0 @@
"use strict";
var exp = Math.exp;
module.exports = function (value) {
if (isNaN(value)) return NaN;
value = Number(value);
if (value === 0) return 1;
if (!isFinite(value)) return Infinity;
return (exp(value) + exp(-value)) / 2;
};