tanh

fun tanh(complex: Complex): Complex(source)

Computes the hyperbolic tangent of a complex number. The hyperbolic tangent is calculated using the formula: tanh(z) = sinh(z) / cosh(z) where z is the complex number.

Return

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

Parameters

complex

The complex number for which the hyperbolic tangent is calculated.