Bug 3016 – Errors in the documentation of std.math.acos
Status
RESOLVED
Resolution
FIXED
Severity
trivial
Priority
P2
Component
dlang.org
Product
D
Version
D2
Platform
All
OS
All
Creation time
2009-05-21T23:57:00Z
Last change time
2015-06-09T05:15:04Z
Assigned to
nobody
Creator
lio+bugzilla
Comments
Comment #0 by lio+bugzilla — 2009-05-21T23:57:27Z
The doc says "Calculates the arc cosine of x, returning a value ranging from -π/2 to π/2." which seemed odd and indeed, acos(-1.0) returns π.
The DOC should say:
"Calculates the arc cosine of x, returning a value ranging from 0 to π."
Both the 1.0 and 2.0 docs have the same error.