Same maths as the original
The nine original states are a line-by-line translation of the web engine. The tests load the original's own reference file and check every dot: 72 cases, 70,115 values, all within 1e-4. This page runs on the original engine itself, and it agrees with the Swift package to the sixth decimal.