es6.math.cosh.js 196 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 // 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; } });