Floats Don't Agree with Themselves

28 points - last Wednesday at 2:48 PM

Source

Comments

stuaxo today at 10:12 AM
Not sure if this was written with AI assistance of not, but I've become allergic to linguistic triples as LLMs use them so much, reading "Same code. Same input. Different answer" makes me not want to read the rest.
tyilo today at 11:19 AM
If the original code was written in Rust, then I don't think the Rust compiler is allowed to do any of these "optimizations" of rewriting floating point expressions.
sampo today at 10:52 AM
I wish the blog would reveal the values of the 3 floats that make their

    cross_sign(A, B, C)
to give different results in different platforms.
jmalicki yesterday at 3:16 AM
I love seeing a Shewchuk citation other than my ML background of learning conjugate gradient! He is truly a great educator!
adampunk yesterday at 12:28 AM
Makes you wish everyone agreed on extended precision!
fefa4ka last Wednesday at 3:09 PM
[dead]