atanh - C complex.h

C examples for complex.h:atanh

Type

function template

From


<complex>
<complex.h>

Description

Arc hyperbolic tangent of complex

Prototype

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

Parameters

Parameter Description
xComplex value.

Return value

Arc hyperbolic tangent of x.

Demo Code


#include <iostream>
#include <complex>

int main ()//from   ww  w.  jav a  2 s  .c  om
{
  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