Mail Archives: djgpp/1999/05/29/08:42:02
El día Fri, 28 May 1999 18:22:17 GMT, f DOT natter AT ndh DOT net (Felix Natter)
escribió:
>solution (in this code it's .2, .4, .2), there will be a math
>inaccuracy: where an entry should have been reduced to 0.0, it becomes
>something*10^(-15), resulting in the algorithm continuing and giving a
There is a limit on the 'double' accuracy (this doesn't only happen in
DJGPP; every C compiler will have the same problem), so if you are not
using some arbitrary-precision math library (gnu has one), that is, if
you are using the standard double type and the standard math.h, just
check the values you get and interpret those below a given threshold
as zero.
Regards:
GUILLE
----
Guillermo Rodriguez Garcia
XXguille AT XXiies DOT XXes (ya sabes :-)
- Raw text -