Boost logo

Boost :

From: Ullrich Koethe (u.koethe_at_[hidden])
Date: 2001-12-06 13:19:58


Fernando Cacciola wrote:
> > Are you suggesting to write:
> >
> > BOOST_CHECK(fp_equal2(left, right, 1.0e-7));
> >
> > instead of
> >
> > BOOST_CHECK_CLOSE(left, right, 1.0e-7);
> >
> > This would be possible (in fact, it already is, provided you implement
> > the fp_equal templates).
> I think that the work Gennady already did on this could be used.
>

Yes, I had missed that Gennadyi's added a sophisticated comparison
function.

> > So, the system might
> > provide functions to roughly estimate the expected error on the basis of
> > the nature of the computation, the orders of magnitude of the numbers
> > involved, and the properties of the current platform.
> >
> I agree that this would be *really* useful.
> I'm not sure if there is any 'successful' research done in this area,
> though.
> Anyway, it's been quite some time since I last looked this up.
> If I ever have the time, I would try to locate some recent reports about
> this to see if an algorithm can be implemented.
>

Perhaps Gannadyi has some ideas, too. Or someone from the numeric's
community?

Ulli

-- 
 ________________________________________________________________
|                                                                |
| Ullrich Koethe  Universität Hamburg / University of Hamburg    |
|                 FB Informatik / Dept. of Computer Science      |
|                 AB Kognitive Systeme / Cognitive Systems Group |
|                                                                |
| Phone: +49 (0)40 42883-2573                Vogt-Koelln-Str. 30 |
| Fax:   +49 (0)40 42883-2572                D - 22527 Hamburg   |
| Email: u.koethe_at_[hidden]               Germany             |
|        koethe_at_[hidden]                        |
| WWW:   http://kogs-www.informatik.uni-hamburg.de/~koethe/      |
|________________________________________________________________|

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk