#4228: atanh (-1) returns NaN instead of -Infinity
---------------------------+------------------------------------------------
Reporter: sbroadhead | Owner:
Type: bug | Status: new
Priority: normal | Component: Prelude
Version: 6.12.1 | Keywords:
Os: MacOS X | Testcase:
Architecture: x86 | Failure: Incorrect result at runtime
---------------------------+------------------------------------------------
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.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/4228>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs