C examples for complex.h:atan
function template
<complex> <complex.h>
Arc tangent of complex
template<class T> complex<T> atan (const complex<T>& x);
Parameter | Description |
---|---|
x | Complex value. |
Arc tangent of x.
#include <iostream> #include <complex> int main ()//from w ww . j a v a2s . com { std::complex<double> mycomplex (3.0,4.0); std::cout << "The Arc tangent of " << mycomplex << " is " << std::atan(mycomplex) << '\n'; return 0; }