FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

gh-157135: Fix documentation errors in the half-turn `*pi` functions by fedonman · Pull Request #157136 · python/cpython · GitHub

Repository navigation

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .c  (1) .rst  (1) All 2 file types selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
2 changes: 1 addition & 1 deletion Doc/library/math.rst
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ noted otherwise, all return values are floats.
:func:`atan(x) <atan>` Arc tangent of *x*, in radians
:func:`atanpi(x) <atanpi>` Arc tangent of *x*, in half-turns
:func:`atan2(y, x) <atan2>` ``atan(y / x)``, in radians
:func:`atan2pi(y, x) <atan2pi>` ``atan(y / x)``, in half-turns
:func:`atan2pi(y, x) <atan2pi>` ``atanpi(y / x)``, in half-turns
:func:`cos(x) <cos>` Cosine of *x* radians
:func:`cospi(x) <cospi>` Cosine of *x⋅π* radians
:func:`sin(x) <sin>` Sine of *x* radians
Expand Down
6 changes: 3 additions & 3 deletions Modules/mathmodule.c
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ m_asinpi(double x)

#ifndef HAVE_ATANPI
/*
asin(x)/pi. It conforms to C23 Annex 'F'.
atan(x)/pi. It conforms to C23 Annex 'F'.
*/

static double
Expand All @@ -274,7 +274,7 @@ m_atanpi(double x)

#ifndef HAVE_ATAN2PI
/*
asin(x)/pi. It conforms to C23 Annex 'F'.
atan2(y, x)/pi. It conforms to C23 Annex 'F'.
*/

static double
Expand Down Expand Up @@ -1136,7 +1136,7 @@ FUNC1D(atanh, atanh, 0,
FUNC1D(atanpi, m_atanpi, 0,
"atanpi($module, x, /)\n--\n\n"
"Return the arc tangent (measured in half-turns) of x.\n\n"
"The result is between 0 and 1.",
"The result is between -1/2 and 1/2.",
"expected a number in range from -1 up to 1, got %s")
FUNC1(cbrt, cbrt, 0,
"cbrt($module, x, /)\n--\n\n"
Expand Down
Loading

Back | FazBrowse Home | New Git URL