Where does the Math library come from? I was thinking that it picks up
GLIBC but I am not sure.
Given the sub-normal IEEE 754 number 2^(-1044)
cbrt(0x1.0p-1044) = 0x1.0p-340 (exactly)
When I use my own cube root function which is done in a generic style, I
get an exact answer as does C/C++. but under Chapel it returns an answer
with a relative error of
0.5*epsilon
I was curious where I should be looking. If Chapel is just using whatever
is the latest version of the standard C library on a given machine, I will
look in my test program.
Also, there is no 'nextafter' routine in Chapel's math library, a.k.a.
man nextafter
but I can donate mine (done in Chapel) from my IEEE 754 project sometime
soon.
Thanks - Damian
Pacific Engineering Systems International, 277-279 Broadway, Glebe NSW 2037
Ph:+61-2-8571-0847 .. Fx:+61-2-9692-9623 | unsolicited email not wanted here
Views & opinions here are mine and not those of any past or present employer
_______________________________________________
Chapel-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/chapel-developers