summaryrefslogtreecommitdiff
path: root/lib/libm/csinhl.c
blob: a8a2e4f3a927d66dae2375915d21e85a1ef2c57a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#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;
}