Skip to content

Commit

Permalink
Add to documentation of two-argument atan (#36128)
Browse files Browse the repository at this point in the history
Clarify behavior of branch cuts.
  • Loading branch information
ambyld authored Jun 3, 2020
1 parent cf410dc commit c69fab5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion base/math.jl
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,8 @@ For one argument, this is the angle in radians between the positive *x*-axis and
For two arguments, this is the angle in radians between the positive *x*-axis and the
point (*x*, *y*), returning a value in the interval ``[-\\pi, \\pi]``. This corresponds to a
standard [`atan2`](https://en.wikipedia.org/wiki/Atan2) function.
standard [`atan2`](https://en.wikipedia.org/wiki/Atan2) function. Note that by convention
`atan(0.0,x)` is defined as ``\\pi`` and `atan(-0.0,x)` is defined as ``-\\pi`` when `x < 0`.
"""
atan(x::Number)

Expand Down

0 comments on commit c69fab5

Please sign in to comment.