Floats Don't Agree with Themselves

(docs.merca.earth)

22 points | by cremer 2 days ago ago

7 comments

  • stuaxo an hour ago

    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.

  • sampo 18 minutes ago

    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 a day ago

    I love seeing a Shewchuk citation other than my ML background of learning conjugate gradient! He is truly a great educator!

    • cremer a day ago

      his predicates paper opens with "Computational geometers despise floating-point arithmetic" same trick as the CG title: write the sentence a frustrated reader would write, then aren it.. if you like those the Triangle paper is the third one in the same key

  • adampunk a day ago

    Makes you wish everyone agreed on extended precision!