summaryrefslogblamecommitdiff
path: root/src/complex/catanh.c
blob: b162802230b3de67b0c4c4b152bab3f0b3679d99 (plain) (tree)
1
2
3
4
5
6
7
8
9








                                              
#include "libm.h"

/* atanh = -i atan(i z) */

double complex catanh(double complex z)
{
	z = catan(cpack(-cimag(z), creal(z)));
	return cpack(cimag(z), -creal(z));
}