| 458 | * The relative rounding error of a machine-precision angle that the pole |
| 459 | * rule of `Tan`, `Cot`, `Sec` and `Csc` allows: 100 ulps, `100·2⁻⁵³` (about |
| 460 | * `1.1·10⁻¹⁴`). `2⁻⁵³` is half an ulp of a double relative to its |
| 461 | * magnitude, the largest relative error of one rounding. The factor 100 is |
| 462 | * two decimal digits of guard, as in the big-decimal rule, whose allowed |
| 463 | * error is `10^(2 − precision)` (`dustScale` in |
| 464 | * `boxed-expression/trigonometry.ts`). |
| 465 | */ |
| 466 | export const TRIG_POLE_EPSILON = 100 * 2 ** -53; |
| 467 | |
| 468 | /** |
| 469 | * The largest magnitude of the argument that the pole rule of `Tan`, `Cot`, |
| 470 | * `Sec` and `Csc` uses to scale its allowed error: `2⁴⁰` (about |