acosh - C complex.h

C examples for complex.h:acosh

Type

function template

From


<complex>
<complex.h>

Description

Arc hyperbolic cosine of complex

Prototype

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

Parameters

Parameter Description
x Complex value.

Return value

Arc hyperbolic cosine of x.

Demo Code


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

Related Tutorials