cosh

Contents

cosh#

class saiunit.math.cosh(x, unit_to_scale=None, **kwargs)#

Hyperbolic cosine, element-wise.

Parameters:
  • x (Array | ndarray | bool | number | bool | int | float | complex | saiunit.Quantity) – Input values.

  • unit_to_scale (saiunit.Unit | None) – Unit used to convert x to a dimensionless number first.

Returns:

out – Element-wise hyperbolic cosine.

Return type:

Array

Examples

>>> import saiunit as u
>>> import jax.numpy as jnp
>>> u.math.cosh(jnp.array([0.0, 1.0]))
Array([1.       , 1.5430806], dtype=float32)