scipp.cosh#

scipp.cosh(x, *, out=None)#

Element-wise hyperbolic cosine.

The input unit must be dimensionless.

Parameters:
Returns:

Same type as input – The hyperbolic cosine values of the input.

Examples

Compute the hyperbolic cosine:

>>> import scipp as sc
>>> x = sc.array(dims=['x'], values=[-1.0, 0.0, 1.0])
>>> sc.cosh(x)
<scipp.Variable> (x: 3)    float64  [dimensionless]  [1.54308, 1, 1.54308]

Note that cosh is an even function, so cosh(-x) == cosh(x).