diff options
Diffstat (limited to 'node_modules/es5-ext/math/cosh')
-rw-r--r-- | node_modules/es5-ext/math/cosh/implement.js | 8 | ||||
-rw-r--r-- | node_modules/es5-ext/math/cosh/index.js | 5 | ||||
-rw-r--r-- | node_modules/es5-ext/math/cosh/is-implemented.js | 7 | ||||
-rw-r--r-- | node_modules/es5-ext/math/cosh/shim.js | 11 |
4 files changed, 0 insertions, 31 deletions
diff --git a/node_modules/es5-ext/math/cosh/implement.js b/node_modules/es5-ext/math/cosh/implement.js deleted file mode 100644 index 6f42b3879..000000000 --- a/node_modules/es5-ext/math/cosh/implement.js +++ /dev/null @@ -1,8 +0,0 @@ -"use strict"; - -if (!require("./is-implemented")()) { - Object.defineProperty(Math, "cosh", { value: require("./shim"), - configurable: true, -enumerable: false, -writable: true }); -} diff --git a/node_modules/es5-ext/math/cosh/index.js b/node_modules/es5-ext/math/cosh/index.js deleted file mode 100644 index 5ed349afc..000000000 --- a/node_modules/es5-ext/math/cosh/index.js +++ /dev/null @@ -1,5 +0,0 @@ -"use strict"; - -module.exports = require("./is-implemented")() - ? Math.cosh - : require("./shim"); diff --git a/node_modules/es5-ext/math/cosh/is-implemented.js b/node_modules/es5-ext/math/cosh/is-implemented.js deleted file mode 100644 index 7173054c7..000000000 --- a/node_modules/es5-ext/math/cosh/is-implemented.js +++ /dev/null @@ -1,7 +0,0 @@ -"use strict"; - -module.exports = function () { - var cosh = Math.cosh; - if (typeof cosh !== "function") return false; - return cosh(1) === 1.5430806348152437; -}; diff --git a/node_modules/es5-ext/math/cosh/shim.js b/node_modules/es5-ext/math/cosh/shim.js deleted file mode 100644 index c762c84da..000000000 --- a/node_modules/es5-ext/math/cosh/shim.js +++ /dev/null @@ -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; -}; |