jax.numpy.cosh

Contents

jax.numpy.cosh#

jax.numpy.cosh(x, /)[source]#

Hyperbolic cosine, element-wise.

LAX-backend implementation of numpy.cosh().

Original docstring below.

Equivalent to 1/2 * (np.exp(x) + np.exp(-x)) and np.cos(1j*x).

Parameters:

x (array_like) – Input array.

Returns:

out – Output array of same shape as x. This is a scalar if x is a scalar.

Return type:

ndarray or scalar