summaryrefslogtreecommitdiff
path: root/lib/libm/csinhl.c
blob: 3bede995bab5e67615d183672080e289a13688e8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#include <complex.h> // for complex, cimagl, creall, csinhl, I
#include <math.h>    // for coshl, cosl, sinhl, sinl

long double complex csinhl(long double complex z)
{
	long double x, y;

	x = creall(z);
	y = cimagl(z);

	return sinhl(x) * cosl(y) + (coshl(x) * sinl(y)) * (long double complex)I;
}