← All projectsGitHub
Digital twins & sim-to-real

Does a float32 simulation of a bouncing, chaotic system lose its statistics? Sinai billiard against float64

research/free-f32bounce

Does a float32 simulation of a bouncing, chaotic system lose its statistics? Sinai billiard: float32 leaves the float64 trajectory after a median 21 collisions, like a float64 start error of about one unit roundoff, and changes the event order one collision later, but the mean free path and circle-hit share agree with float64 and with Cauchy's exact value (stylised).

10 tests

What it found

A point particle in a unit square with a circular obstacle (Sinai billiard), event-driven with specular reflection, run in float32 and float64 from the same start. Float32 leaves the float64 trajectory (position differs by > 0.1) after a median 21 collisions, equal to a float64 start error of 4.6×10−8, about one float32 unit roundoff (the smooth flows of free-f32shadow needed about 100×). The first different surface is hit exactly one collision after the position departs, at every error size tried. Mean free path (0.45296 vs 0.45325) and the circle's share of collisions agree within sampling error (|z| < 0.6), and match Cauchy’s exact mean free path 0.45321; no particle escaped and the direction vector’s length drifted by about 10−5 after 2000 collisions. Stylised: straight-line flights, no time-stepped contact; a first attempt on a vibrating-table bouncing ball was not chaotic and is not used.

A figure from its own output

Figure produced by research/free-f32bounce: departure
free-f32bounce/experiments/departure.svg, written by the project's own experiment code.

Paper, code and results

More in Digital twins & sim-to-real

All 164 Digital twins & sim-to-real projects →

Other research topics

Proper scoring & elicitation28Effort & peer prediction9Verification games & slashing19Detection & tolerances14Markets as routers13Prediction-market design9Paying contributors8Decentralised training systems23Digital twins & sim-to-real164LLM chip design loops40Robot manufacturing loops53Ambient AI assistant46Self-replicating manufacturing34Simulation-first design64Engineered clothing45Task-specific AI accelerators40Algorithmic chip-design loops42Open-source purpose-built robots44The software-engineering loop43Adversarial human imitation41Open-source residential construction41Autonomous multi-angle capture34Sensing, imaging and 3D31Energy supply and dense energy storage39Robot societies among people31Agentic co-design of low-cost robots27Laundry-hanging robots25Machine learning on qualitative data23Robots on the building site27Civilizations & group psychology1History & human sciences1

Produced with AI assistance (Claude). Results are from the code in this repository and are simulated or stylised unless the abstract says otherwise; nothing here implies affiliation with or endorsement by any lab, researcher or company cited. MIT licensed.