summaryrefslogtreecommitdiff
path: root/src/complex/cacosh.c
blob: c2dfc1baff766d49d7873d1d037e4709a92eaaf7 (plain) (blame)
1
2
3
4
5
6
7
8
9
#include "libm.h"

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

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