[Gambas-bugtracker] Bug #1562: Bad calculation

bugtracker at gambaswiki.org bugtracker at gambaswiki.org
Thu Apr 18 19:06:58 CEST 2019


http://gambaswiki.org/bugtracker/edit?object=BUG.1562&from=L21haW4-

Comment #1 by Tobias BOEGE:

So what you're criticising is, more compactly written,

  Print acos(-1) - acos(-1 + 1e-16)
  > 1.49011611938477E-8

What's wrong with that except for the usual floating point inaccuracies?
Do you know what floating point arithmetic is and implies? Or was the result
better in previous Gambas versions? Please be more specific than "!!¿?!!"
about what you're reporting.

According to higher-precision arithmetic, the true difference is something
like 1.41421356237309506058680174398E-8, so it's not like it's completely
wrong. Just as wrong as you should expect transcendental functions to be.

Tobias BOEGE changed the state of the bug to: Rejected.




More information about the Bugtracker mailing list