[Issue 11654] New: std.complex.arg should return a value in the range 0 <= theta < 2*PI
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Nov 30 09:12:39 PST 2013
https://d.puremagic.com/issues/show_bug.cgi?id=11654
Summary: std.complex.arg should return a value in the range 0
<= theta < 2*PI
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: Phobos
AssignedTo: nobody at puremagic.com
ReportedBy: joseph.wakeling at webdrake.net
--- Comment #0 from Joseph Rushton Wakeling <joseph.wakeling at webdrake.net> 2013-11-30 09:12:38 PST ---
It ought to simplify handling (and testing) complex numbers if we constrain the
argument (i.e. angle theta in polar coordinate form) of complex numbers to fall
within the range [0, 2 * PI).
Example case: should arg(complex(-1.0, 0)) be PI or -PI?
--
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list