C examples for complex.h:atanh
function template
<complex> <complex.h>
Arc hyperbolic tangent of complex
template<class T> complex<T> atanh (const complex<T>& x);
Parameter | Description |
---|---|
x | Complex value. |
Arc hyperbolic tangent of x.
#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; }