projects
/
musl
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
76127f75f4bb1b4369bf98d209c0089e2ff86bca
[musl]
/
src
/
complex
/
cacosh.c
1
#include "complex_impl.h"
2
3
/* acosh(z) = i acos(z) */
4
5
double complex cacosh(double complex z)
6
{
7
int zineg = signbit(cimag(z));
8
9
z = cacos(z);
10
if (zineg) return CMPLX(cimag(z), -creal(z));
11
else return CMPLX(-cimag(z), creal(z));
12
}