fdlibm icon indicating copy to clipboard operation
fdlibm copied to clipboard

Questions about IEEE 754 functions.

Open PowerUser1234 opened this issue 3 years ago • 3 comments

Do the IEEE 754 fdlibm versions of the functions sin, cos, tan, asin, acos, atan, exp, log, log10, cbrt, atan2, pow, sinh, cosh, tanh, hypot, expm1, and log1p also have non-IEEE 754 versions of those functions, that don't allow for the same floating point errors in the values returned, when used in Java SE or OpenJDK, which are unlike the IEEE 754 versions of these functions? Could someone please confirm and reply?

PowerUser1234 avatar Oct 31 '22 08:10 PowerUser1234

I'm sorry but I don't understand what are you asking about. Also, do you realize this is an old, m68k-centric, math library?

mikrosk avatar Oct 31 '22 08:10 mikrosk

The functions: sin, cos, tan, asin, acos, atan, exp, log, log10, cbrt, atan2, pow, sinh, cosh, tanh, hypot, expm1, and log1p all come in IEEE 754 versions. Does the same fdlibm library also contain non-IEEE 754 versions, that are more digit place accurate than the IEEE 754 ones manage not to be from within Java OpenJDK?

PowerUser1234 avatar Oct 31 '22 09:10 PowerUser1234

I also quite don't understand the question. There is a compile-time option to compile it with SVID semantics, but that mostly has an influence about error handling and NANs, if that is what you are looking for,

th-otto avatar Oct 31 '22 09:10 th-otto