Add worst-case math library inputs to JAX numerics accuracy tests. #41842

Merged
copybara-service[bot] opened 8:35am on October 21, 2026 wanted to merge 146 ฮ” into google/jax main from
test_1003859875
Reviewing
27 fewer changed lines
(5% less) vs GitHub
This saves about 8.8 hours per year vs conventional diff tools
copybara-service[bot] authored
of work during October 21
Diff Delta:
146
About 12 Diff Delta/hour
Classified as:  Feature Add

copybara-service[bot]'s Description of Work

Add worst-case math library inputs to JAX numerics accuracy tests.

Add the single- and double-precision worst-case inputs compiled by Gladman et al. ("Accuracy of Mathematical Functions in Single, Double, Double Extended, and Quadruple Precision", https://members.loria.fr/PZimmermann/papers/accuracy.pdf) to interesting_points across the JAX math accuracy tests so sampled float32 and float64 runs always check known hard-to-round arguments.

Also raise five float64 error bounds by 0.5 ULP where these inputs expose larger underlying library errors:
- sinh on CPU: 1.5 -> 2.0 ULP
- acos on GPU: 1.5 -> 2.0 ULP
- acosh on GPU: 2.5 -> 3.0 ULP
- atan2 on GPU: 1.5 -> 2.0 ULP
- cos on GPU: 1.5 -> 2.0 ULP

8 total changed files
Loading changes...
Congrats, you've cleared the final file
Thus concludes todayโ€™s episode of โ€œJust One Small Changeโ€