“I have never met a scientist who can resist the lure of fast-but-dangerous math when doing numerical simulations.”
Load gevent and it silently changes floating point behavior for your whole Python process. He scanned about 270,000 wheels and found 49 packages shipped built with -ffast-math. At least 2,514 packages depend on one of them. Your numbers are wrong because of an import you never thought about.