cosh

fun cosh(complex: Complex): Complex(source)

Computes the hyperbolic cosine of a complex number. The hyperbolic cosine is calculated using the formula: cosh(a + bi) = cosh(a)cos(b) + i·sinh(a)sin(b), where a and b are the real and imaginary parts of the complex number, respectively.

Return

A new instance of Complex representing the hyperbolic cosine of the given complex number.

Parameters

complex

The complex number for which the hyperbolic cosine is calculated.