Skip to content

Commit cc8617b

Browse files
committed
Issue #21092: Merge from 3.4.
2 parents a5d0c7c + dfe0b23 commit cc8617b

4 files changed

Lines changed: 13 additions & 13 deletions

File tree

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/clinic/cmathmodule.c.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ PyDoc_STRVAR(cmath_acosh__doc__,
4949
"acosh($module, z, /)\n"
5050
"--\n"
5151
"\n"
52-
"Return the hyperbolic arccosine of z.");
52+
"Return the inverse hyperbolic cosine of z.");
5353

5454
#define CMATH_ACOSH_METHODDEF \
5555
{"acosh", (PyCFunction)cmath_acosh, METH_VARARGS, cmath_acosh__doc__},
@@ -135,7 +135,7 @@ PyDoc_STRVAR(cmath_asinh__doc__,
135135
"asinh($module, z, /)\n"
136136
"--\n"
137137
"\n"
138-
"Return the hyperbolic arc sine of z.");
138+
"Return the inverse hyperbolic sine of z.");
139139

140140
#define CMATH_ASINH_METHODDEF \
141141
{"asinh", (PyCFunction)cmath_asinh, METH_VARARGS, cmath_asinh__doc__},
@@ -221,7 +221,7 @@ PyDoc_STRVAR(cmath_atanh__doc__,
221221
"atanh($module, z, /)\n"
222222
"--\n"
223223
"\n"
224-
"Return the hyperbolic arc tangent of z.");
224+
"Return the inverse hyperbolic tangent of z.");
225225

226226
#define CMATH_ATANH_METHODDEF \
227227
{"atanh", (PyCFunction)cmath_atanh, METH_VARARGS, cmath_atanh__doc__},

Modules/cmathmodule.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ static Py_complex acosh_special_values[7][7];
207207
/*[clinic input]
208208
cmath.acosh = cmath.acos
209209
210-
Return the hyperbolic arccosine of z.
210+
Return the inverse hyperbolic cosine of z.
211211
[clinic start generated code]*/
212212

213213
static Py_complex
@@ -262,7 +262,7 @@ static Py_complex asinh_special_values[7][7];
262262
/*[clinic input]
263263
cmath.asinh = cmath.acos
264264
265-
Return the hyperbolic arc sine of z.
265+
Return the inverse hyperbolic sine of z.
266266
[clinic start generated code]*/
267267

268268
static Py_complex
@@ -353,7 +353,7 @@ static Py_complex atanh_special_values[7][7];
353353
/*[clinic input]
354354
cmath.atanh = cmath.acos
355355
356-
Return the hyperbolic arc tangent of z.
356+
Return the inverse hyperbolic tangent of z.
357357
[clinic start generated code]*/
358358

359359
static Py_complex

Modules/mathmodule.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -902,18 +902,18 @@ math_2(PyObject *args, double (*func) (double, double), char *funcname)
902902
FUNC1(acos, acos, 0,
903903
"acos(x)\n\nReturn the arc cosine (measured in radians) of x.")
904904
FUNC1(acosh, m_acosh, 0,
905-
"acosh(x)\n\nReturn the hyperbolic arc cosine (measured in radians) of x.")
905+
"acosh(x)\n\nReturn the inverse hyperbolic cosine of x.")
906906
FUNC1(asin, asin, 0,
907907
"asin(x)\n\nReturn the arc sine (measured in radians) of x.")
908908
FUNC1(asinh, m_asinh, 0,
909-
"asinh(x)\n\nReturn the hyperbolic arc sine (measured in radians) of x.")
909+
"asinh(x)\n\nReturn the inverse hyperbolic sine of x.")
910910
FUNC1(atan, atan, 0,
911911
"atan(x)\n\nReturn the arc tangent (measured in radians) of x.")
912912
FUNC2(atan2, m_atan2,
913913
"atan2(y, x)\n\nReturn the arc tangent (measured in radians) of y/x.\n"
914914
"Unlike atan(y/x), the signs of both x and y are considered.")
915915
FUNC1(atanh, m_atanh, 0,
916-
"atanh(x)\n\nReturn the hyperbolic arc tangent (measured in radians) of x.")
916+
"atanh(x)\n\nReturn the inverse hyperbolic tangent of x.")
917917

918918
static PyObject * math_ceil(PyObject *self, PyObject *number) {
919919
_Py_IDENTIFIER(__ceil__);

0 commit comments

Comments
 (0)