Version 1
[yaffs-website] / node_modules / core-js / library / modules / es6.math.atanh.js
1 // 20.2.2.7 Math.atanh(x)
2 var $export = require('./_export')
3   , $atanh  = Math.atanh;
4
5 // Tor Browser bug: Math.atanh(-0) -> 0 
6 $export($export.S + $export.F * !($atanh && 1 / $atanh(-0) < 0), 'Math', {
7   atanh: function atanh(x){
8     return (x = +x) == 0 ? x : Math.log((1 + x) / (1 - x)) / 2;
9   }
10 });