es6.math.cosh.js 187 B

12345678910
  1. // 20.2.2.12 Math.cosh(x)
  2. var $export = require('./_export');
  3. var exp = Math.exp;
  4. $export($export.S, 'Math', {
  5. cosh: function cosh(x) {
  6. return (exp(x = +x) + exp(-x)) / 2;
  7. }
  8. });