Skip to content

Commit dfe0b23

Browse files
committed
Issue #21902: Replace incorrect 'hyperbolic arc sine' (etc.) with 'inverse hyperbolic sine' (etc.). Remove meaningless reference to radians.
1 parent bcf8554 commit dfe0b23

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

Doc/library/cmath.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -149,21 +149,21 @@ Hyperbolic functions
149149

150150
.. function:: acosh(x)
151151

152-
Return the hyperbolic arc cosine of *x*. There is one branch cut, extending left
153-
from 1 along the real axis to -∞, continuous from above.
152+
Return the inverse hyperbolic cosine of *x*. There is one branch cut,
153+
extending left from 1 along the real axis to -∞, continuous from above.
154154

155155

156156
.. function:: asinh(x)
157157

158-
Return the hyperbolic arc sine of *x*. There are two branch cuts:
158+
Return the inverse hyperbolic sine of *x*. There are two branch cuts:
159159
One extends from ``1j`` along the imaginary axis to ``∞j``,
160160
continuous from the right. The other extends from ``-1j`` along
161161
the imaginary axis to ``-∞j``, continuous from the left.
162162

163163

164164
.. function:: atanh(x)
165165

166-
Return the hyperbolic arc tangent of *x*. There are two branch cuts: One
166+
Return the inverse hyperbolic tangent of *x*. There are two branch cuts: One
167167
extends from ``1`` along the real axis to ````, continuous from below. The
168168
other extends from ``-1`` along the real axis to ``-∞``, continuous from
169169
above.

Modules/cmathmodule.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ c_acosh(Py_complex z)
192192
PyDoc_STRVAR(c_acosh_doc,
193193
"acosh(x)\n"
194194
"\n"
195-
"Return the hyperbolic arccosine of x.");
195+
"Return the inverse hyperbolic cosine of x.");
196196

197197

198198
static Py_complex
@@ -249,7 +249,7 @@ c_asinh(Py_complex z)
249249
PyDoc_STRVAR(c_asinh_doc,
250250
"asinh(x)\n"
251251
"\n"
252-
"Return the hyperbolic arc sine of x.");
252+
"Return the inverse hyperbolic sine of x.");
253253

254254

255255
static Py_complex
@@ -353,7 +353,7 @@ c_atanh(Py_complex z)
353353
PyDoc_STRVAR(c_atanh_doc,
354354
"atanh(x)\n"
355355
"\n"
356-
"Return the hyperbolic arc tangent of x.");
356+
"Return the inverse hyperbolic tangent of x.");
357357

358358

359359
static Py_complex

Modules/mathmodule.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -873,18 +873,18 @@ math_2(PyObject *args, double (*func) (double, double), char *funcname)
873873
FUNC1(acos, acos, 0,
874874
"acos(x)\n\nReturn the arc cosine (measured in radians) of x.")
875875
FUNC1(acosh, m_acosh, 0,
876-
"acosh(x)\n\nReturn the hyperbolic arc cosine (measured in radians) of x.")
876+
"acosh(x)\n\nReturn the inverse hyperbolic cosine of x.")
877877
FUNC1(asin, asin, 0,
878878
"asin(x)\n\nReturn the arc sine (measured in radians) of x.")
879879
FUNC1(asinh, m_asinh, 0,
880-
"asinh(x)\n\nReturn the hyperbolic arc sine (measured in radians) of x.")
880+
"asinh(x)\n\nReturn the inverse hyperbolic sine of x.")
881881
FUNC1(atan, atan, 0,
882882
"atan(x)\n\nReturn the arc tangent (measured in radians) of x.")
883883
FUNC2(atan2, m_atan2,
884884
"atan2(y, x)\n\nReturn the arc tangent (measured in radians) of y/x.\n"
885885
"Unlike atan(y/x), the signs of both x and y are considered.")
886886
FUNC1(atanh, m_atanh, 0,
887-
"atanh(x)\n\nReturn the hyperbolic arc tangent (measured in radians) of x.")
887+
"atanh(x)\n\nReturn the inverse hyperbolic tangent of x.")
888888

889889
static PyObject * math_ceil(PyObject *self, PyObject *number) {
890890
_Py_IDENTIFIER(__ceil__);

0 commit comments

Comments
 (0)