blob: 9cfff54a82b65bafc8f2e49bc2bf67ba54b3f9c6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
#include <math.h>
#include <complex.h>
double complex ccosh(double complex z)
{
double x, y;
x = creal(z);
y = cimag(z);
return cosh(x) * cos(y) + (sinh(x) * sin(y)) * I;
}
|