Last change
on this file since 6c1585f was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
435 bytes
|
Rev | Line | |
---|
[6a3a178] | 1 | var $ = require('../internals/export');
|
---|
| 2 |
|
---|
| 3 | // eslint-disable-next-line es/no-math-atanh -- required for testing
|
---|
| 4 | var $atanh = Math.atanh;
|
---|
| 5 | var log = Math.log;
|
---|
| 6 |
|
---|
| 7 | // `Math.atanh` method
|
---|
| 8 | // https://tc39.es/ecma262/#sec-math.atanh
|
---|
| 9 | // Tor Browser bug: Math.atanh(-0) -> 0
|
---|
| 10 | $({ target: 'Math', stat: true, forced: !($atanh && 1 / $atanh(-0) < 0) }, {
|
---|
| 11 | atanh: function atanh(x) {
|
---|
| 12 | return (x = +x) == 0 ? x : log((1 + x) / (1 - x)) / 2;
|
---|
| 13 | }
|
---|
| 14 | });
|
---|
Note:
See
TracBrowser
for help on using the repository browser.