www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 2269] New: D BUG: cosine of complex

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2269

           Summary: D BUG: cosine of complex
           Product: D
           Version: unspecified
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Phobos
        AssignedTo: bugzilla digitalmars.com
        ReportedBy: bugzilla digitalmars.com


I am doing some programming in D and
I dicovered that cos(z), where z is a
complex number, is computed incorrectly.
After looking at the documentation, D
uses the equation:

cos(z) = cos(z.re)*cosh(z.im) + sin(z.re)*sinh(z.im)i

The correct equation is actually the complex conjugate
of the above equation:

cos(z) = cos(z.re)*cosh(z.im) - sin(z.re)*sinh(z.im)i


-- 
Aug 06 2008
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2269


bugzilla digitalmars.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED





Fixed dmd 1.034 and 2.018


-- 
Aug 14 2008
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2269









-- 
Aug 14 2008