Published August 12, 2026
| Version v0.12.0
Software
Open
Certify v0.12.0: certified demagnetization-tensor reference tables — two-sided rational enclosures of the Newell entries, and a rigorous map of where double-precision micromagnetics loses its digits
Description
Every finite-difference micromagnetic simulator — OOMMF, MuMax3, magnum.np, Fidimag, MagTense and the newer GPU codes — builds its demagnetizing field from the same analytic object: the Newell demagnetization tensor of a pair of uniformly magnetized rectangular cells. It is documented but uncertified that the closed-form evaluation loses all significant digits to catastrophic cancellation once the cells are more than a few hundred cell widths apart. This release pins the tensor entries rigorously: each carries an interval of dyadic rationals containing the true value, obtained by evaluating Newell's formulas in interval arithmetic that rounds outward on every operation, with the transcendental pieces enclosed by rigorously truncated series and everything else exact rational arithmetic. Against these enclosures the two floating-point routes a simulator can take are measured rigorously: the naive double-precision analytic evaluation degrades by about six correct decimal digits per decade of separation — from roughly 15 digits at one cell to ZERO correct digits near 300 cells, and beyond that a value with the wrong sign and wrong order of magnitude, exactly the r^6 law and ~300-cell breakdown the accuracy literature predicts but never certified; the asymptotic expansion route is complementary, poor at short range and good at long range, and the crossover between them is located rigorously. The enclosures remain tight to tens of digits everywhere, including where double precision has none. A certificate JSON and a standard-library Python checker that re-derives every enclosure and rejects tampering at both the hash layer and the mathematical re-derivation layer are the public unit. Adversarially reviewed before release; the decision log ships as demag-paper/FIXLOG.md. Computations carried out with Claude (Anthropic), directed by the author.
Files
05oz/certify-v0.12.0.zip
Additional details
Related works
- Is supplement to
- Software: https://github.com/05oz/certify/tree/v0.12.0 (URL)
Software
- Repository URL
- https://github.com/05oz/certify