Sign in
mojo
/
mojo-tools
/
74b0cac9bdd351dc67c6fc99a7a8b64e85de2f5d
/
.
/
fusl
/
src
/
complex
/
ctan.c
blob: 6e24525b1f822ac50bc11d03f2a593f433d6bc5e [
file
]
#include
"libm.h"
/* tan(z) = -i tanh(i z) */
double
complex ctan
(
double
complex z
)
{
z
=
ctanh
(
CMPLX
(-
cimag
(
z
),
creal
(
z
)));
return
CMPLX
(
cimag
(
z
),
-
creal
(
z
));
}