cosh¶
- cosh(x: array, /) array ¶
Calculates an implementation-dependent approximation to the hyperbolic cosine, having domain
[-infinity, +infinity]
and codomain[-infinity, +infinity]
, for each elementx_i
in the input arrayx
.Special cases
For floating-point operands,
If
x_i
isNaN
, the result isNaN
.If
x_i
is+0
, the result is1
.If
x_i
is-0
, the result is1
.If
x_i
is+infinity
, the result is+infinity
.If
x_i
is-infinity
, the result is+infinity
.
- Parameters:
x (array) – input array whose elements each represent a hyperbolic angle. Should have a floating-point data type.
- Returns:
out (array) – an array containing the hyperbolic cosine of each element in
x
. The returned array must have a floating-point data type determined by Type Promotion Rules.