This makes it easier to build musl math code with a compiler that does not support complex types (tcc) and in general more sensible factorization of the internal headers.
10 lines
178 B
C
10 lines
178 B
C
#include "complex_impl.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));
|
|
}
|