source: imaps-frontend/node_modules/core-js/internals/math-expm1.js@ 79a0317

main
Last change on this file since 79a0317 was 79a0317, checked in by stefan toskovski <stefantoska84@…>, 3 days ago

F4 Finalna Verzija

  • Property mode set to 100644
File size: 568 bytes
Line 
1'use strict';
2// eslint-disable-next-line es/no-math-expm1 -- safe
3var $expm1 = Math.expm1;
4var exp = Math.exp;
5
6// `Math.expm1` method implementation
7// https://tc39.es/ecma262/#sec-math.expm1
8module.exports = (!$expm1
9 // Old FF bug
10 // eslint-disable-next-line no-loss-of-precision -- required for old engines
11 || $expm1(10) > 22025.465794806719 || $expm1(10) < 22025.4657948067165168
12 // Tor Browser bug
13 || $expm1(-2e-17) !== -2e-17
14) ? function expm1(x) {
15 var n = +x;
16 return n === 0 ? n : n > -1e-6 && n < 1e-6 ? n + n * n / 2 : exp(n) - 1;
17} : $expm1;
Note: See TracBrowser for help on using the repository browser.