Kahan's Floating Point Test

Stephen L Moshier moshier@mediaone.net
Wed May 30 12:27:00 GMT 2001


> 
> X^((X + 1) / (X - 1)) vs. exp(2) = 7.38905609893065218e+00 as X -> 1
> calculated 7.38905609548934539e+00 until I switched to double rounding

I checked this on a linux box.  The result is due to the pow function
in the system math library.  The function is sensitive to the setting
of the fpu rounding precision.  It is not a compiler bug.




More information about the Gcc mailing list