You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10 lines
342 B
10 lines
342 B
// 20.2.2.5 Math.asinh(x) |
|
var $export = require('./_export'); |
|
var $asinh = Math.asinh; |
|
|
|
function asinh(x) { |
|
return !isFinite(x = +x) || x == 0 ? x : x < 0 ? -asinh(-x) : Math.log(x + Math.sqrt(x * x + 1)); |
|
} |
|
|
|
// Tor Browser bug: Math.asinh(0) -> -0 |
|
$export($export.S + $export.F * !($asinh && 1 / $asinh(0) > 0), 'Math', { asinh: asinh });
|
|
|