Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
dc3f99fa
Commit
dc3f99fa
authored
Jul 13, 2019
by
Giovanni Cappellotto
Committed by
Mark Dickinson
Jul 13, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bpo-37548: Document range of atan, acos and asin (GH-14717)
parent
e6b46aaf
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
6 deletions
+13
-6
Doc/library/math.rst
Doc/library/math.rst
+6
-3
Misc/ACKS
Misc/ACKS
+1
-0
Modules/mathmodule.c
Modules/mathmodule.c
+6
-3
No files found.
Doc/library/math.rst
View file @
dc3f99fa
...
...
@@ -366,17 +366,20 @@ Trigonometric functions
.. function:: acos(x)
Return the arc cosine of *x*, in radians.
Return the arc cosine of *x*, in radians. The result is between ``0`` and
``pi``.
.. function:: asin(x)
Return the arc sine of *x*, in radians.
Return the arc sine of *x*, in radians. The result is between ``-pi/2`` and
``pi/2``.
.. function:: atan(x)
Return the arc tangent of *x*, in radians.
Return the arc tangent of *x*, in radians. The result is between ``-pi/2`` and
``pi/2``.
.. function:: atan2(y, x)
...
...
Misc/ACKS
View file @
dc3f99fa
...
...
@@ -251,6 +251,7 @@ Jp Calderone
Arnaud Calmettes
Daniel Calvelo
Tony Campbell
Giovanni Cappellotto
Brett Cannon
Tristan Carel
Mike Carlton
...
...
Modules/mathmodule.c
View file @
dc3f99fa
...
...
@@ -1072,19 +1072,22 @@ math_2(PyObject *const *args, Py_ssize_t nargs,
FUNC1
(
acos
,
acos
,
0
,
"acos($module, x, /)
\n
--
\n\n
"
"Return the arc cosine (measured in radians) of x."
)
"Return the arc cosine (measured in radians) of x.
\n\n
"
"The result is between 0 and pi."
)
FUNC1
(
acosh
,
m_acosh
,
0
,
"acosh($module, x, /)
\n
--
\n\n
"
"Return the inverse hyperbolic cosine of x."
)
FUNC1
(
asin
,
asin
,
0
,
"asin($module, x, /)
\n
--
\n\n
"
"Return the arc sine (measured in radians) of x."
)
"Return the arc sine (measured in radians) of x.
\n\n
"
"The result is between -pi/2 and pi/2."
)
FUNC1
(
asinh
,
m_asinh
,
0
,
"asinh($module, x, /)
\n
--
\n\n
"
"Return the inverse hyperbolic sine of x."
)
FUNC1
(
atan
,
atan
,
0
,
"atan($module, x, /)
\n
--
\n\n
"
"Return the arc tangent (measured in radians) of x."
)
"Return the arc tangent (measured in radians) of x.
\n\n
"
"The result is between -pi/2 and pi/2."
)
FUNC2
(
atan2
,
m_atan2
,
"atan2($module, y, x, /)
\n
--
\n\n
"
"Return the arc tangent (measured in radians) of y/x.
\n\n
"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment