Sign in
chromium
/
external
/
github.com
/
WebAssembly
/
musl
/
5b546faa67544af395d6407553762b37e9711157
/
.
/
src
/
complex
/
catanh.c
blob: e248d9b934135c5b474d16223c520109f0ed3d71 [
file
] [
log
] [
blame
]
#include
"libm.h"
/* atanh = -i atan(i z) */
double
complex catanh
(
double
complex z
)
{
z
=
catan
(
CMPLX
(-
cimag
(
z
),
creal
(
z
)));
return
CMPLX
(
cimag
(
z
),
-
creal
(
z
));
}