On Sat, Dec 14, 2013 at 04:19:03PM +0100, Miguel Colom wrote: > Some useful short remarks and tips about numeric precision: > http://www.codeproject.com/Articles/29637/Five-Tips-for-Floating-Point-Programming
Thanks. On the first point, how to compare floating-point numbers, and what is a good epsilon for this comparison, one good reference is here: -> http://randomascii.wordpress.com/2012/02/25/comparing-floating-point-numbers-2012-edition/ It's an updated version of the previously written page, which I have seen mentioned as the reference in many places: -> http://www.cygnus-software.com/papers/comparingfloats/comparingfloats.htm Basically, the idea is to use an epsilon definition (ULP) depending on the precision of the floats, and to do that efficiently by comparing floats like integers! The same author has written many other things about floating-points, all very useful and well detailed. -> http://randomascii.wordpress.com/category/floating-point/ And there is the classic "What Every Computer Scientist Should Know About Floating-Point Arithmetic" by David Goldberg, 20 years ago: -> http://docs.oracle.com/cd/E19957-01/806-3568/ncg_goldberg.html -- Nicolas LIMARE - CMLA - ENS Cachan http://limare.perso.math.cnrs.fr/ IPOL journal http://www.ipol.im/ -> image processing, reproducible research, open science
signature.asc
Description: Digital signature
-- IPOL - Image Processing On Line - http://ipol.im/ contact [email protected] - http://www.ipol.im/meta/contact/ news+feeds twitter @IPOL_journal - http://www.ipol.im/meta/feeds/ announces [email protected] - http://tools.ipol.im/mm/announce/ discussions [email protected] - http://tools.ipol.im/mm/discuss/
