项目原始demo,不改动
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.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

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. });