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

Pull Request Overview

  • Opened on October 21, 2026
  • Status Merged
  • Commit count 2 with first commit October 21, 2026

Total Delta

146 Total Diff Delta

Open Days

Open 17 weekdays

Test Delta

119 Diff Delta in Test Files
Breakdown by Phase

How long has this pull request spent in each phase of its lifecycle?

Data pending calculation for pull request

Author avatar

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

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

PR was closed without comments.