math: move complex math out of libm.h
[musl.git] / src / complex / casinh.c
blob50bf27ce88ea426e67fec4f140560ac5445067a9
1 #include "complex_impl.h"
3 /* asinh(z) = -i asin(i z) */
5 double complex casinh(double complex z)
7 z = casin(CMPLX(-cimag(z), creal(z)));
8 return CMPLX(cimag(z), -creal(z));