2016-10-10 03:43:44 +02:00
|
|
|
// 20.2.2.12 Math.cosh(x)
|
2017-05-27 17:36:13 +02:00
|
|
|
var $export = require('./_export')
|
2016-10-10 03:43:44 +02:00
|
|
|
, exp = Math.exp;
|
|
|
|
|
|
|
|
$export($export.S, 'Math', {
|
|
|
|
cosh: function cosh(x){
|
|
|
|
return (exp(x = +x) + exp(-x)) / 2;
|
|
|
|
}
|
|
|
|
});
|