()
| 8370 | var hasRequiredEs_math_atanh; |
| 8371 | |
| 8372 | function requireEs_math_atanh () { |
| 8373 | if (hasRequiredEs_math_atanh) return es_math_atanh; |
| 8374 | hasRequiredEs_math_atanh = 1; |
| 8375 | var $ = require_export(); |
| 8376 | |
| 8377 | // eslint-disable-next-line es/no-math-atanh -- required for testing |
| 8378 | var $atanh = Math.atanh; |
| 8379 | var log = Math.log; |
| 8380 | |
| 8381 | var FORCED = !($atanh && 1 / $atanh(-0) < 0); |
| 8382 | |
| 8383 | // `Math.atanh` method |
| 8384 | // https://tc39.es/ecma262/#sec-math.atanh |
| 8385 | // Tor Browser bug: Math.atanh(-0) -> 0 |
| 8386 | $({ target: 'Math', stat: true, forced: FORCED }, { |
| 8387 | atanh: function atanh(x) { |
| 8388 | var n = +x; |
| 8389 | return n === 0 ? n : log((1 + n) / (1 - n)) / 2; |
| 8390 | } |
| 8391 | }); |
| 8392 | return es_math_atanh; |
| 8393 | } |
| 8394 | |
| 8395 | var es_math_cbrt = {}; |
| 8396 |
no test coverage detected
searching dependent graphs…