autodiff.cosh

autodiff.cosh(x)

Return the hyperbolic cosine of x.

Parameters
xint, float, Dual
Returns
yfloat or Dual

Examples

>>> ad.cosh(1)
1.5430806348152437
>>> x = ad.Dual(2, 1)
>>> ad.cosh(x)
Dual(3.7621956910836314, array([3.62686041]))