MathSecure

Earlier notes

Why float equality comparisons keep surviving code review

9 March 2026

They pass the tests, because the tests use values that happen to be exactly representable. The failure arrives with real input, months later.

Interval arithmetic as a debugging tool

21 January 2026

Running a computation twice — once normally, once with intervals — is an expensive way to get an honest error bar, and occasionally the only way.

Notes on iterative refinement

4 November 2025

A single refinement step recovers most of the accuracy lost to a badly conditioned solve, provided the residual is computed in higher precision. That proviso is where implementations usually go wrong.