[Issue 1877] New: Errors in the documentation of std.math.atan2

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Feb 27 20:25:36 PST 2008


http://d.puremagic.com/issues/show_bug.cgi?id=1877

           Summary: Errors in the documentation of std.math.atan2
           Product: D
           Version: 2.011
          Platform: PC
               URL: http://www.digitalmars.com/d/2.0/phobos/std_math.html
        OS/Version: All
            Status: NEW
          Severity: minor
          Priority: P2
         Component: www.digitalmars.com
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: lio at lunesu.com


First of all, the doc states "Calculates the arc tangent of y / x, returning a
value ranging from -π/2 to π/2." which should be "..from -π to π.", as is
shown in the table.

Then, there are a couple of inconsistencies in the "Special Values" table:
"±0.0 ±0.0 ±0.0" should be "±0.0 +0.0 ±0.0",
"<0.0 ±0.0 π/2" should be "<0.0 ±0.0 -π/2",
">0.0 ∞ ±0.0" should be "anything ∞ ±0.0",
">0.0 -∞ ±π" should be "anything -∞ ±π".


-- 



More information about the Digitalmars-d-bugs mailing list