atanh

constexpr Complex atanh(const Complex &z) noexcept

Returns the complex inverse tanh [1] of a complex number \(z\).

Parameters

const Complex &z

A complex number.

Returns

type Complex

A complex number.

The inverse tanh function of a complex number is defined as:

\[\tanh^{-1}z = \frac{1}{2}\log(\frac{1 + z}{1 - z})\]

Example

Complex z = 3 + 4_j;
std::cout << atanh(z) << "\n";

Output:

0.117501 + 1.40992j

References