C examples for complex.h:complex
class template
<complex> <complex.h>
Complex number class
template <class T> class complex;
#include <iostream> #include <complex> int main ()// w ww . j a v a2 s .c o m { std::complex<double> mycomplex (3.0,4.0); std::cout << "The Arc hyperbolic tangent of " << mycomplex << " is " << std::atanh(mycomplex) << '\n'; return 0; }