Skip to content

Commit 264e90e

Browse files
ambyldsimeonschaub
authored andcommitted
Add to documentation of two-argument atan (JuliaLang#36128)
Clarify behavior of branch cuts.
1 parent 5226305 commit 264e90e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

base/math.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,8 @@ For one argument, this is the angle in radians between the positive *x*-axis and
344344
345345
For two arguments, this is the angle in radians between the positive *x*-axis and the
346346
point (*x*, *y*), returning a value in the interval ``[-\\pi, \\pi]``. This corresponds to a
347-
standard [`atan2`](https://en.wikipedia.org/wiki/Atan2) function.
347+
standard [`atan2`](https://en.wikipedia.org/wiki/Atan2) function. Note that by convention
348+
`atan(0.0,x)` is defined as ``\\pi`` and `atan(-0.0,x)` is defined as ``-\\pi`` when `x < 0`.
348349
"""
349350
atan(x::Number)
350351

0 commit comments

Comments
 (0)