summaryrefslogblamecommitdiff
path: root/src/complex/casinh.c
blob: f2b3fef83333bb38e274d97b306edc721556cdcf (plain) (tree)
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(cpack(-cimag(z), creal(z)));
	return cpack(cimag(z), -creal(z));
}