summaryrefslogtreecommitdiff
path: root/lib/libm/cacosh.c
blob: bf33b7c7cc48027c6a599519c5862b73c5107365 (plain)
1
2
3
4
5
6
#include <complex.h> // for csqrt, cacosh, clog, complex

double complex cacosh(double complex z)
{
	return clog(z + csqrt(z + 1) * csqrt(z - 1));
}