complex - C complex.h

C examples for complex.h:complex

Type

class template

From


<complex>
<complex.h>

Description

Complex number class

Prototype

template <class T> 
class complex;

Demo Code


#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;
}

Related Tutorials