You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
304 B
JavaScript
11 lines
304 B
JavaScript
5 years ago
|
// 20.2.2.7 Math.atanh(x)
|
||
|
var $export = require('./_export');
|
||
|
var $atanh = Math.atanh;
|
||
|
|
||
|
// Tor Browser bug: Math.atanh(-0) -> 0
|
||
|
$export($export.S + $export.F * !($atanh && 1 / $atanh(-0) < 0), 'Math', {
|
||
|
atanh: function atanh(x) {
|
||
|
return (x = +x) == 0 ? x : Math.log((1 + x) / (1 - x)) / 2;
|
||
|
}
|
||
|
});
|