b7ed518b

By: huashengshao <erdissshaw@gmail.com>

C0: a Coulomb triangle exactly at its threshold keeps the binary64 kernels

Review of #34. At C0(4 m², m², m²; m², m², 0) with 4 m² exact in
binary64, the DoubleFloat kernels take √(k² - 4) of a rounding error
instead of zero. For most masses they are finite and wrong there, by up
to 3e35 times the finite part (1.5e35 for 172.5, 9.3e33 for 4.7); for 173
and 80.419002 they are not finite, which is why the first commit's tests
did not see it. The first
commit served that value on every binary64 route, where 870387c's
expression route was right for most masses.

c0_next_to_threshold now leaves such a leg alone (c0_coulomb_at_threshold):
the third propagator exactly massless, the other two legs exactly on the
shell of their massive neighbours, and λ, formed in DoubleFloat, exactly
zero. The binary64 kernels decide there, as on 870387c.

- tests/b0_c0_normal_thresholds.rs: Coulomb triangles exactly at their
  threshold (172.5 and 4.7, three labellings), expression route within
  1e-15 of 1024 bits; fails on 847e756, passes on 870387c.
- The unit test covers the rule in every labelling, and points one unit
  in the last place off the threshold or with a leg off its shell.
- 18,000 values at exact Coulomb thresholds (1,000 equal masses, 200
  unequal integer pairs, three labellings, every route) are 870387c's;
  the points next to them and the 47,500 random values are 847e756's.
- NATIVE_BACKEND.md, STATUS.md and the test's doc comment no longer say
  the exact threshold is unchanged; STATUS.md's counts of the random set
  are corrected to 47,500 and 17,735 (a line was dropped before).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
GitHub
configure