9e0e5da612ea96218c6a2cd36cc018bcf2d4f033de017bc2bd6dd6cef19f9a57589b01e2133a7623cf9c8a6a93dfd994533edd058d3b1011cfe520ea59721e 304 B

12345678910
  1. // 20.2.2.7 Math.atanh(x)
  2. var $export = require('./_export');
  3. var $atanh = Math.atanh;
  4. // Tor Browser bug: Math.atanh(-0) -> 0
  5. $export($export.S + $export.F * !($atanh && 1 / $atanh(-0) < 0), 'Math', {
  6. atanh: function atanh(x) {
  7. return (x = +x) == 0 ? x : Math.log((1 + x) / (1 - x)) / 2;
  8. }
  9. });