@@ -753,7 +753,7 @@ def _get_accumulation_res_dt(a, dtype):
753
753
754
754
755
755
_COS_DOCSTRING = """
756
- Computes cosine for each element :math:`x_i` for input array `x`.
756
+ Computes the cosine for each element :math:`x_i` for input array `x`.
757
757
758
758
For full documentation refer to :obj:`numpy.cos`.
759
759
@@ -810,7 +810,7 @@ def _get_accumulation_res_dt(a, dtype):
810
810
811
811
812
812
_COSH_DOCSTRING = r"""
813
- Computes hyperbolic cosine for each element :math:`x_i` for input array `x`.
813
+ Computes the hyperbolic cosine for each element :math:`x_i` for input array `x`.
814
814
815
815
The mathematical definition of the hyperbolic cosine is
816
816
@@ -2248,14 +2248,14 @@ def reduce_hypot(x, /, *, axis=None, dtype=None, keepdims=False, out=None):
2248
2248
2249
2249
2250
2250
_SIN_DOCSTRING = """
2251
- Computes sine for each element `x_i` of input array `x`.
2251
+ Computes the sine for each element :math: `x_i` of input array `x`.
2252
2252
2253
2253
For full documentation refer to :obj:`numpy.sin`.
2254
2254
2255
2255
Parameters
2256
2256
----------
2257
2257
x : {dpnp.ndarray, usm_ndarray}
2258
- Input array, expected to have numeric data type.
2258
+ Input array, expected to have a floating-point data type.
2259
2259
out : {None, dpnp.ndarray, usm_ndarray}, optional
2260
2260
Output array to populate.
2261
2261
Array must have the correct shape and the expected data type.
@@ -2269,8 +2269,8 @@ def reduce_hypot(x, /, *, axis=None, dtype=None, keepdims=False, out=None):
2269
2269
Returns
2270
2270
-------
2271
2271
out : dpnp.ndarray
2272
- An array containing the element-wise sine. The data type of the
2273
- returned array is determined by the Type Promotion Rules.
2272
+ An array containing the element-wise sine. The data type of the returned
2273
+ array is determined by the Type Promotion Rules.
2274
2274
2275
2275
Limitations
2276
2276
-----------
@@ -2280,7 +2280,7 @@ def reduce_hypot(x, /, *, axis=None, dtype=None, keepdims=False, out=None):
2280
2280
2281
2281
See Also
2282
2282
--------
2283
- :obj:`dpnp.arcsin ` : Trigonometric inverse sine, element-wise.
2283
+ :obj:`dpnp.asin ` : Trigonometric inverse sine, element-wise.
2284
2284
:obj:`dpnp.cos` : Trigonometric cosine, element-wise.
2285
2285
:obj:`dpnp.tan` : Trigonometric tangent, element-wise.
2286
2286
:obj:`dpnp.sinh` : Hyperbolic sine, element-wise.
@@ -2304,15 +2304,19 @@ def reduce_hypot(x, /, *, axis=None, dtype=None, keepdims=False, out=None):
2304
2304
)
2305
2305
2306
2306
2307
- _SINH_DOCSTRING = """
2308
- Computes hyperbolic sine for each element `x_i` for input array `x`.
2307
+ _SINH_DOCSTRING = r"""
2308
+ Computes the hyperbolic sine for each element :math:`x_i` for input array `x`.
2309
+
2310
+ The mathematical definition of the hyperbolic sine is
2311
+
2312
+ .. math:: \operatorname{sinh}(x) = \frac{e^x - e^{-x}}{2}
2309
2313
2310
2314
For full documentation refer to :obj:`numpy.sinh`.
2311
2315
2312
2316
Parameters
2313
2317
----------
2314
2318
x : {dpnp.ndarray, usm_ndarray}
2315
- Input array, expected to have numeric data type.
2319
+ Input array, expected to have a floating-point data type.
2316
2320
out : {None, dpnp.ndarray, usm_ndarray}, optional
2317
2321
Output array to populate.
2318
2322
Array must have the correct shape and the expected data type.
@@ -2326,8 +2330,8 @@ def reduce_hypot(x, /, *, axis=None, dtype=None, keepdims=False, out=None):
2326
2330
Returns
2327
2331
-------
2328
2332
out : dpnp.ndarray
2329
- An array containing the element-wise hyperbolic sine. The data type
2330
- of the returned array is determined by the Type Promotion Rules.
2333
+ An array containing the element-wise hyperbolic sine. The data type of the
2334
+ returned array is determined by the Type Promotion Rules.
2331
2335
2332
2336
Limitations
2333
2337
-----------
@@ -2337,7 +2341,7 @@ def reduce_hypot(x, /, *, axis=None, dtype=None, keepdims=False, out=None):
2337
2341
2338
2342
See Also
2339
2343
--------
2340
- :obj:`dpnp.arcsinh ` : Hyperbolic inverse sine, element-wise.
2344
+ :obj:`dpnp.asinh ` : Hyperbolic inverse sine, element-wise.
2341
2345
:obj:`dpnp.cosh` : Hyperbolic cosine, element-wise.
2342
2346
:obj:`dpnp.tanh` : Hyperbolic tangent, element-wise.
2343
2347
:obj:`dpnp.sin` : Trigonometric sine, element-wise.
0 commit comments