C examples for complex.h:cosh
function template
<complex> <complex.h>
template<class T> complex<T> cosh (const complex<T>& x);
Hyperbolic cosine of complex
Parameter | Description |
---|---|
x | Complex value, representing an angle expressed in radians. |
Hyperbolic cosine of x.
#include <iostream> #include <complex> int main ()// w ww. j ava 2 s .c o m { std::complex<double> mycomplex (10.0,2.0); std::cout << "The Hyperbolic cosine of " << mycomplex << " is " << std::cosh(mycomplex) << '\n'; return 0; }