C examples for complex.h:acosh
function template
<complex> <complex.h>
Arc hyperbolic cosine of complex
template<class T> complex<T> acosh (const complex<T>& x);
Parameter | Description |
---|---|
x | Complex value. |
Arc hyperbolic cosine of x.
#include <iostream> #include <complex> int main ()//from w ww. j av a 2s . com { std::complex<double> mycomplex (3.0,4.0); std::cout << "The Arc hyperbolic cosine value of " << mycomplex << " is " << std::acosh(mycomplex) << '\n'; return 0; }