Skip to content

Commit 0e1ba52

Browse files
jeplerpicnixzskirpichev
authored
Apply suggestions from code review
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com> Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
1 parent 56da6fc commit 0e1ba52

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

Doc/library/math.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -656,8 +656,8 @@ Trigonometric functions
656656
The vector in the plane from the origin to point ``(x, y)`` makes this angle
657657
with the positive X axis. The point of :func:`atan2pi` is that the signs of both
658658
inputs are known to it, so it can compute the correct quadrant for the angle.
659-
For example, ``atanpi(1)`` and ``atan2pi(1, 1)`` are both ``.25``, but
660-
``atan2pi(-1, -1)`` is ``-.75``.
659+
For example, ``atanpi(1)`` and ``atan2pi(1, 1)`` are both ``0.25``, but
660+
``atan2pi(-1, -1)`` is ``-0.75``.
661661

662662
.. versionadded:: next
663663

Doc/whatsnew/3.16.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ math
111111
new functions :func:`math.cospi`, :func:`math.sinpi`, and :func:`math.tanpi`
112112
take half-turn angle arguments. These functions are recommended by IEEE
113113
754-2019 and standardized in C23.
114+
(Contributed by Jeff Epler in :gh:`150534`.)
114115

115116
os
116117
--

Modules/mathmodule.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,6 @@ m_cospi(double x)
312312
#define m_cospi cospi
313313
#endif
314314

315-
316315
#ifndef HAVE_SINPI
317316
/*
318317
sin(pi*x), giving accurate results for all finite x (especially x

0 commit comments

Comments
 (0)