Skip to content

Commit

Permalink
Merge pull request numpy#15968 from melissawm/angle-docs
Browse files Browse the repository at this point in the history
DOC: Added note to angle function docstring about angle(0) being 0.
  • Loading branch information
mattip authored Apr 14, 2020
2 parents efa7bad + 3190b79 commit c6916f4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions numpy/lib/function_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -1429,6 +1429,11 @@ def angle(z, deg=False):
arctan2
absolute
Notes
-----
Although the angle of the complex number 0 is undefined, ``numpy.angle(0)``
returns the value 0.
Examples
--------
>>> np.angle([1.0, 1.0j, 1+1j]) # in radians
Expand Down

0 comments on commit c6916f4

Please sign in to comment.