mirror of
https://github.com/python/cpython.git
synced 2025-08-24 18:55:00 +00:00
bpo-37548: Document range of atan, acos and asin (GH-14717)
This commit is contained in:
parent
e6b46aafad
commit
dc3f99fa77
3 changed files with 13 additions and 6 deletions
|
@ -366,17 +366,20 @@ Trigonometric functions
|
||||||
|
|
||||||
.. function:: acos(x)
|
.. 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)
|
.. 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)
|
.. 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)
|
.. function:: atan2(y, x)
|
||||||
|
|
|
@ -251,6 +251,7 @@ Jp Calderone
|
||||||
Arnaud Calmettes
|
Arnaud Calmettes
|
||||||
Daniel Calvelo
|
Daniel Calvelo
|
||||||
Tony Campbell
|
Tony Campbell
|
||||||
|
Giovanni Cappellotto
|
||||||
Brett Cannon
|
Brett Cannon
|
||||||
Tristan Carel
|
Tristan Carel
|
||||||
Mike Carlton
|
Mike Carlton
|
||||||
|
|
|
@ -1072,19 +1072,22 @@ math_2(PyObject *const *args, Py_ssize_t nargs,
|
||||||
|
|
||||||
FUNC1(acos, acos, 0,
|
FUNC1(acos, acos, 0,
|
||||||
"acos($module, x, /)\n--\n\n"
|
"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,
|
FUNC1(acosh, m_acosh, 0,
|
||||||
"acosh($module, x, /)\n--\n\n"
|
"acosh($module, x, /)\n--\n\n"
|
||||||
"Return the inverse hyperbolic cosine of x.")
|
"Return the inverse hyperbolic cosine of x.")
|
||||||
FUNC1(asin, asin, 0,
|
FUNC1(asin, asin, 0,
|
||||||
"asin($module, x, /)\n--\n\n"
|
"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,
|
FUNC1(asinh, m_asinh, 0,
|
||||||
"asinh($module, x, /)\n--\n\n"
|
"asinh($module, x, /)\n--\n\n"
|
||||||
"Return the inverse hyperbolic sine of x.")
|
"Return the inverse hyperbolic sine of x.")
|
||||||
FUNC1(atan, atan, 0,
|
FUNC1(atan, atan, 0,
|
||||||
"atan($module, x, /)\n--\n\n"
|
"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,
|
FUNC2(atan2, m_atan2,
|
||||||
"atan2($module, y, x, /)\n--\n\n"
|
"atan2($module, y, x, /)\n--\n\n"
|
||||||
"Return the arc tangent (measured in radians) of y/x.\n\n"
|
"Return the arc tangent (measured in radians) of y/x.\n\n"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue