atan - C complex.h

C examples for complex.h:atan

Type

function template

From


<complex>
<complex.h>

Description

Arc tangent of complex

Prototype

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

Parameters

Parameter Description
x Complex value.

Return value

Arc tangent of x.

Demo Code


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

Related Tutorials