about summary refs log tree commit diff
path: root/src/complex/ccos.c
blob: 645aec29a9dc013de43e3bb4bfed7d36d671a39b (plain) (blame)
1
2
3
4
5
6
7
8
#include "libm.h"

/* cos(z) = cosh(i z) */

double complex ccos(double complex z)
{
	return ccosh(CMPLX(-cimag(z), creal(z)));
}