sinh - C complex.h

C examples for complex.h:sinh

type

function template

From


<complex>
<complex.h>

Prototype

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

Description

Hyperbolic sine of complex

Parameters

Parameter Description
xComplex value, representing an angle expressed in radians.

Return value

Hyperbolic sine of x.

Demo Code


#include <iostream> // std::cout
#include <complex> // std::complex, std::real

int main ()/*from w  w w .  j  a v a  2  s  .  co  m*/
{
  std::complex<double> mycomplex (10.0,1.0);

  std::cout << "Real part: " << std::sin(mycomplex) << '\n';

  return 0;
}

Related Tutorials