about summary refs log tree commit diff
path: root/src/complex/casinh.c
blob: b57fe8c40ba3bfe94047e8af1f17b12ff9e4dd89 (plain) (blame)
1
2
3
4
5
6
7
8
9
#include "libm.h"

/* asinh(z) = -i asin(i z) */

double complex casinh(double complex z)
{
	z = casin(CMPLX(-cimag(z), creal(z)));
	return CMPLX(cimag(z), -creal(z));
}