#4228: atanh (-1) returns NaN instead of -Infinity
---------------------------------+------------------------------------------
Reporter: sbroadhead | Owner:
Type: bug | Status: new
Priority: normal | Milestone: 6.14.1
Component: Prelude | Version: 6.12.1
Keywords: | Testcase:
Blockedby: | Difficulty:
Os: Unknown/Multiple | Blocking:
Architecture: Unknown/Multiple | Failure: Incorrect result at runtime
---------------------------------+------------------------------------------
Changes (by igloo):
* os: MacOS X => Unknown/Multiple
* architecture: x86 => Unknown/Multiple
* milestone: => 6.14.1
Comment:
Since the beginning of time:
{{{
Thu Jun 28 15:15:04 BST 2001 simonmar
* [project @ 2001-06-28 14:15:04 by simonmar]
First cut of the Haskell Core Libraries
}}}
we've had:
{{{
asinh x = log (x + sqrt (1.0+x*x))
acosh x = log (x + (x+1.0) * sqrt ((x-1.0)/(x+1.0)))
atanh x = log ((x+1.0) / sqrt (1.0-x*x))
}}}
for `Double`, `Float` and `Complex a`.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/4228#comment:1>
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