2016-10-10 03:43:44 +02:00
|
|
|
// 20.2.2.5 Math.asinh(x)
|
2017-05-27 17:36:13 +02:00
|
|
|
var $export = require('./_export')
|
|
|
|
, $asinh = Math.asinh;
|
2016-10-10 03:43:44 +02:00
|
|
|
|
|
|
|
function asinh(x){
|
|
|
|
return !isFinite(x = +x) || x == 0 ? x : x < 0 ? -asinh(-x) : Math.log(x + Math.sqrt(x * x + 1));
|
|
|
|
}
|
|
|
|
|
2017-05-27 17:36:13 +02:00
|
|
|
// Tor Browser bug: Math.asinh(0) -> -0
|
|
|
|
$export($export.S + $export.F * !($asinh && 1 / $asinh(0) > 0), 'Math', {asinh: asinh});
|