chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-users] Using epsilon in test egg


From: Matt Gushee
Subject: Re: [Chicken-users] Using epsilon in test egg
Date: Sat, 26 Jul 2014 19:55:31 -0600

Hi, John--

On Sat, Jul 26, 2014 at 7:47 PM, John Cowan <address@hidden> wrote:
> Matt Gushee scripsit:

> Other posters have addressed the main issues, but I'll just point out
> that "inexact comparison" means "comparison for equality of inexact
> numbers".  Epsilon is applied only by the default predicate: it's
> assumed that if you write your own equality predicate, you know what
> you want.

I was coming to that conclusion myself, but it's good to have an
authoritative answer.

> = also works correctly for all floats.  It's computation itself that
> isn't always mathematically correct,

Indeed. I know that much, at least. Though I can still remember the
time (around 2001?) when I saw that a calculation that was supposed to
produce 1 actually produced 0.9999962734 or something like that, and I
went WTFFF?

Thanks.

--
Matt



reply via email to

[Prev in Thread] Current Thread [Next in Thread]