atan
-
constexpr Complex atan(const Complex &z) noexcept
Returns the complex inverse tan [1] of a complex number \(z\).
Parameters
- const Complex &z
A complex number.
Returns
- type Complex
A complex number.
The inverse tangent function of a complex number is defined as:
\[\tan^{-1}z = \frac{1}{2}i(\log((1 - iz) - \log(1 + iz)))\]
Example
Complex z = 3 + 4_j;
std::cout << atan(z) << "\n";
Output:
1.44831 + 0.158997j
References