summaryrefslogblamecommitdiff
path: root/src/complex/cacosh.c
blob: 8e42f1ae86ed5556933a3f0dca8b7a6b9130ffcc (plain) (tree)
1
2
3
4
5
6
7
8
9
                         





                                       
                                          
 
#include "complex_impl.h"

/* acosh(z) = i acos(z) */

double complex cacosh(double complex z)
{
	z = cacos(z);
	return CMPLX(-cimag(z), creal(z));
}