source: trip-planner-front/node_modules/core-js/internals/math-expm1.js@ 188ee53

Last change on this file since 188ee53 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 466 bytes
Line 
1// eslint-disable-next-line es/no-math-expm1 -- safe
2var $expm1 = Math.expm1;
3var exp = Math.exp;
4
5// `Math.expm1` method implementation
6// https://tc39.es/ecma262/#sec-math.expm1
7module.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;
Note: See TracBrowser for help on using the repository browser.