blob: 8e81506d894ac9b9c6a82b5afed55f10a4522b83 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
#include <complex.h> // for ccoshl, cimagl, complex, creall, I
#include <math.h> // for coshl, cosl, sinhl, sinl
long double complex ccoshl(long double complex z)
{
long double x, y;
x = creall(z);
y = cimagl(z);
return coshl(x) * cosl(y) + (sinhl(x) * sinl(y)) * I;
}
|