Welcome to mirror list, hosted at ThFree Co, Russian Federation.

ccoshl.c « complex « mingwex « mingw « winsup - cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 0fb2526c70be7c761cc28596af9634f82b5d2ec5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/*
   ccoshl.c
   Contributed by Danny Smith
   2005-01-04
*/

#include <math.h>
#include <complex.h>

/* ccosh (x + I * y) = cosh (x) * cos (y)
    + I * (sinh (x) * sin (y)) */ 

long double complex ccoshl (long double complex Z)
{
  long double complex Res;
  __real__ Res = coshl (__real__ Z) * cosl (__imag__ Z);
  __imag__ Res = sinhl (__real__ Z) * sinl (__imag__ Z);
  return Res;
}