#4867: Incorrect result from trig functions
-------------------------------+--------------------------------------------
Reporter: gwright | Owner:
Type: bug | Status: new
Priority: normal | Component: GHCi
Version: 7.0.1 | Keywords:
Testcase: | Blockedby:
Os: MacOS X | Blocking:
Architecture: x86_64 (amd64) | Failure: Incorrect result at runtime
-------------------------------+--------------------------------------------
Comment(by ajd):
{{{
$ ghc --version
The Glorious Glasgow Haskell Compilation System, version 7.0.1
$ ghci
GHCi, version 7.0.1: http://www.haskell.org/ghc/ :? for help
Loading package ghc-prim ... linking ... done.
Loading package integer-gmp ... linking ... done.
Loading package base ... linking ... done.
Loading package ffi-1.0 ... linking ... done.
Prelude> tan (0.5 * pi + 0.01)
-99.99666664444476
Prelude> tan (0.5 * pi - 0.01)
99.99666664444354
Prelude> cos (3*pi)
-1.0
Prelude> tanh (-1)
-0.7615941559557649
}}}
Can't reproduce under Linux i686 w/ GHC 7.0.1.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/4867#comment:7>
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