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

float complex ctanf(float complex z)
{
	z = ctanhf(cpackf(-cimagf(z), crealf(z)));
	return cpackf(cimagf(z), -crealf(z));
}