[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
- Re: [Chicken-users] Using epsilon in test egg, (continued)
- Re: [Chicken-users] Using epsilon in test egg, Alaric Snell-Pym, 2014/07/30
- Re: [Chicken-users] Using epsilon in test egg, Peter Bex, 2014/07/30
- Re: [Chicken-users] Using epsilon in test egg, John Cowan, 2014/07/30
- Re: [Chicken-users] Using epsilon in test egg, Alex Shinn, 2014/07/30
- Re: [Chicken-users] Using epsilon in test egg, Peter Bex, 2014/07/30
Re: [Chicken-users] Using epsilon in test egg, Alex Charlton, 2014/07/26
Re: [Chicken-users] Using epsilon in test egg, John Cowan, 2014/07/26
- Re: [Chicken-users] Using epsilon in test egg,
Matt Gushee <=