diff options
Diffstat (limited to 'node_modules/core-js/library/modules/es6.math.atanh.js')
-rw-r--r-- | node_modules/core-js/library/modules/es6.math.atanh.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/node_modules/core-js/library/modules/es6.math.atanh.js b/node_modules/core-js/library/modules/es6.math.atanh.js new file mode 100644 index 000000000..94575d9f0 --- /dev/null +++ b/node_modules/core-js/library/modules/es6.math.atanh.js @@ -0,0 +1,10 @@ +// 20.2.2.7 Math.atanh(x) +var $export = require('./_export') + , $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; + } +});
\ No newline at end of file |