A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://en.cppreference.com/w/cpp/language/../algorithm/../ranges/../numeric/complex/atan.html below:

std::atan(std::complex) - cppreference.com

template< class T >
complex<T> atan( const complex<T>& z );

(since C++11)

Computes complex arc tangent of a complex value z. Branch cut exists outside the interval [−i, +i] along the imaginary axis.

[edit] Parameters [edit] Return value

If no errors occur, complex arc tangent of z is returned, in the range of a strip unbounded along the imaginary axis and in the interval [−π/2, +π/2] along the real axis.

Errors and special cases are handled as if the operation is implemented by -i * std::atanh(i * z), where i is the imaginary unit.

[edit] Notes

Inverse tangent (or arc tangent) is a multivalued function and requires a branch cut on the complex plane. The branch cut is conventionally placed at the line segments (-∞i,-i) and (+i,+∞i) of the imaginary axis.

The mathematical definition of the principal value of inverse tangent is

atan z = - i [ln(1 - iz) - ln (1 + iz)]

.

[edit] Example

Output:

atan(0.000000,2.000000) = (1.570796,0.549306)
atan(-0.000000,2.000000) (the other side of the cut) = (-1.570796,0.549306)
2 * atan(0.000000,inf) = (3.141593,0.000000)
[edit] See also

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4