IMSL C# Numerical Library

Complex.Tanh Method 

Returns the hyperbolic tanh of a Complex.

public static Complex Tanh(
   Complex z
);

Parameters

z
A Complex object.

Return Value

A newly constructed Complex initialized to the hyperbolic tangent of the argument.

Remarks

If z = x+iy,

\tanh(\bar{z}) = \overline{\tanh(z)} and tanh is odd.

\tanh(+0 + i0) returns +0 + i0.

\tanh(+\infty + iy) returns 1 + i0, for all positive-signed numbers y.

\tanh(x + i\infty ) returns \NaN + i\NaN, for finite x.

\tanh(+\infty + i\NaN) returns 1 \pm  i0 (where the sign of the imaginary part of the result is unspecified).

\tanh(\NaN + i0) returns \NaN + i0.

\tanh(\NaN + iy) returns \NaN + i\NaN, for all nonzero numbers y.

\tanh(x + i\NaN) returns \NaN + i\NaN, for finite x.

\tanh(\NaN + i\NaN) returns \NaN + i\NaN.

See Also

Complex Class | Imsl.Math Namespace