digitalmars.D.bugs - [Issue 11654] New: std.complex.arg should return a value in the range 0 <= theta < 2*PI
- d-bugmail puremagic.com (21/21) Nov 30 2013 https://d.puremagic.com/issues/show_bug.cgi?id=11654
- d-bugmail puremagic.com (12/12) Nov 30 2013 https://d.puremagic.com/issues/show_bug.cgi?id=11654
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 puremagic.com ReportedBy: joseph.wakeling 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: -------
Nov 30 2013
https://d.puremagic.com/issues/show_bug.cgi?id=11654 Joseph Rushton Wakeling <joseph.wakeling webdrake.net> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID 2013-11-30 09:20:59 PST --- Sorry; this is nonsense, it ought to return a value in the range (-PI, PI]. The problem is that arg() is returning a value of -PI. -- Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Nov 30 2013