diff options
Diffstat (limited to 'node_modules/core-js/library/modules/es6.math.cosh.js')
| -rw-r--r-- | node_modules/core-js/library/modules/es6.math.cosh.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/node_modules/core-js/library/modules/es6.math.cosh.js b/node_modules/core-js/library/modules/es6.math.cosh.js new file mode 100644 index 00000000..1e0cffc1 --- /dev/null +++ b/node_modules/core-js/library/modules/es6.math.cosh.js @@ -0,0 +1,9 @@ +// 20.2.2.12 Math.cosh(x) +var $export = require('./_export'); +var exp = Math.exp; + +$export($export.S, 'Math', { + cosh: function cosh(x) { + return (exp(x = +x) + exp(-x)) / 2; + } +}); |
