9 lines
188 B
JavaScript
9 lines
188 B
JavaScript
// 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;
|
|
}
|
|
}); |