atanh (-1) returns NaN instead of -Infinity
|Reported by:||sbroadhead||Owned by:|
|Type of failure:||Incorrect result at runtime||Test Case:|
|Related Tickets:||Differential Rev(s):|
According to the man page for libc's atanh:
If x is +1 or -1, a pole error occurs, and the functions return HUGE_VAL, HUGE_VALF, or HUGE_VALL, respectively, with the mathematically correct sign.
atanh 1 correctly returns Infinity, but atanh (-1) returns NaN instead of -Infinity. A C program compiled on the same system gives the correct result.
Change History (4)
comment:1 Changed 5 years ago by igloo
- Architecture changed from x86 to Unknown/Multiple
- Milestone set to 6.14.1
- Operating System changed from MacOS X to Unknown/Multiple