summaryrefslogtreecommitdiff
path: root/lib/libm/cacosf.c
blob: f44f00673c9e1e5e5428866e9f41aecc65bd1994 (plain)
1
2
3
4
5
6
7
8
9
#include <math.h>
#include <complex.h>

float complex cacosf(float complex z)
{
	float complex w = casinf(z);

	return ((float)M_PI_2 - crealf(w)) - cimagf(w) * I;
}