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