#2059: Erroneous results in trigonometric functions for > double-precision 
values
-------------------------------+--------------------------------------------
 Reporter:  daniel.is.fischer  |          Owner:         
     Type:  bug                |         Status:  new    
 Priority:  normal             |      Milestone:         
Component:  Compiler           |        Version:  6.8.1  
 Severity:  normal             |     Resolution:         
 Keywords:                     |     Difficulty:  Unknown
 Testcase:                     |   Architecture:  x86    
       Os:  Linux              |  
-------------------------------+--------------------------------------------
Changes (by igloo):

  * difficulty:  => Unknown

Old description:

> For large inputs, sin, cos and tan return the input value:
> {{{GHCi, version 6.8.1: http://www.haskell.org/ghc/  :? for help
> Loading package base ... linking ... done.
> Prelude> sin 1e20
> 1.0e20
> Prelude> cos 1e20
> 1.0e20
> Prelude> cos 1e19
> 1.0e19
> Prelude> cos 1e18
> 0.11965025504785125
> Prelude> tan 1e19
> 1.0e19}}}

New description:

 For large inputs, sin, cos and tan return the input value:
 {{{
 GHCi, version 6.8.1: http://www.haskell.org/ghc/  :? for help
 Loading package base ... linking ... done.
 Prelude> sin 1e20
 1.0e20
 Prelude> cos 1e20
 1.0e20
 Prelude> cos 1e19
 1.0e19
 Prelude> cos 1e18
 0.11965025504785125
 Prelude> tan 1e19
 1.0e19
 }}}

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2059#comment:5>
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

Reply via email to