Skip to content

Commit bb57325

Browse files
committed
fix discussion of atan2pi
1 parent e9ec2b6 commit bb57325

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

Doc/library/math.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -646,12 +646,12 @@ Trigonometric functions
646646

647647
.. function:: atan2pi(y, x)
648648

649-
Return ``atan(y / x)``, in half-turns. The result is between ``-1`` and ``1``.
649+
Return ``atanpi(y / x)``, in half-turns. The result is between ``-1`` and ``1``.
650650
The vector in the plane from the origin to point ``(x, y)`` makes this angle
651-
with the positive X axis. The point of :func:`atan2` is that the signs of both
651+
with the positive X axis. The point of :func:`atan2pi` is that the signs of both
652652
inputs are known to it, so it can compute the correct quadrant for the angle.
653-
For example, ``atan(1)`` and ``atan2(1, 1)`` are both ``1/4``, but ``atan2(-1,
654-
-1)`` is ``-3/4``.
653+
For example, ``atanpi(1)`` and ``atanpi2(1, 1)`` are both ``1/4``, but
654+
``atanpi2(-1, -1)`` is ``-3/4``.
655655

656656

657657
.. function:: cos(x)

0 commit comments

Comments
 (0)