Returns the hyperbolic tanh of a Complex.

Namespace: Imsl.Math
Assembly: ImslCS (in ImslCS.dll) Version: 6.5.0.0

Syntax

C#
public static Complex Tanh(
	Complex z
)
Visual Basic (Declaration)
Public Shared Function Tanh ( _
	z As Complex _
) As Complex
Visual C++
public:
static Complex Tanh(
	Complex z
)

Parameters

z
Type: Imsl.Math..::.Complex
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