summaryrefslogtreecommitdiffstats
path: root/Modules/mathmodule.c
diff options
context:
space:
mode:
authorGiovanni Cappellotto <potomak84@gmail.com>2019-07-13 13:59:55 (GMT)
committerMark Dickinson <dickinsm@gmail.com>2019-07-13 13:59:55 (GMT)
commitdc3f99fa77f415077c20a9c2b3e953e5cd894076 (patch)
treedd9dae72294094ea3c61e7ff754aa8485a5e1934 /Modules/mathmodule.c
parente6b46aafad3427463d6264a68824df4797e682f1 (diff)
downloadcpython-dc3f99fa77f415077c20a9c2b3e953e5cd894076.zip
cpython-dc3f99fa77f415077c20a9c2b3e953e5cd894076.tar.gz
cpython-dc3f99fa77f415077c20a9c2b3e953e5cd894076.tar.bz2
bpo-37548: Document range of atan, acos and asin (GH-14717)
Diffstat (limited to 'Modules/mathmodule.c')
-rw-r--r--Modules/mathmodule.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/Modules/mathmodule.c b/Modules/mathmodule.c
index 552cb78..92c40b3 100644
--- a/Modules/mathmodule.c
+++ b/Modules/mathmodule.c
@@ -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"