Opal-Estate-Pro/node_modules/core-js/modules/es6.math.cosh.js
2019-09-13 11:27:52 +07:00

10 lines
187 B
JavaScript

// 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;
}
});