digitalmars.D.bugs - [Issue 2269] New: D BUG: cosine of complex
- d-bugmail puremagic.com (22/22) Aug 06 2008 http://d.puremagic.com/issues/show_bug.cgi?id=2269
- d-bugmail puremagic.com (9/9) Aug 14 2008 http://d.puremagic.com/issues/show_bug.cgi?id=2269
- d-bugmail puremagic.com (4/4) Aug 14 2008 http://d.puremagic.com/issues/show_bug.cgi?id=2269
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
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









d-bugmail puremagic.com 