massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / core-js / internals / math-expm1.js
1 // eslint-disable-next-line es/no-math-expm1 -- safe
2 var $expm1 = Math.expm1;
3 var exp = Math.exp;
4
5 // `Math.expm1` method implementation
6 // https://tc39.es/ecma262/#sec-math.expm1
7 module.exports = (!$expm1
8   // Old FF bug
9   || $expm1(10) > 22025.465794806719 || $expm1(10) < 22025.4657948067165168
10   // Tor Browser bug
11   || $expm1(-2e-17) != -2e-17
12 ) ? function expm1(x) {
13   return (x = +x) == 0 ? x : x > -1e-6 && x < 1e-6 ? x + x * x / 2 : exp(x) - 1;
14 } : $expm1;