source:
EcnlProtoTool/trunk/musl-1.1.18/src/complex/ctan.c@
444
Last change on this file since 444 was 444, checked in by , 4 years ago | |
---|---|
|
|
File size: 166 bytes |
Line | |
---|---|
1 | #include "libm.h" |
2 | |
3 | /* tan(z) = -i tanh(i z) */ |
4 | |
5 | double complex ctan(double complex z) |
6 | { |
7 | z = ctanh(CMPLX(-cimag(z), creal(z))); |
8 | return CMPLX(cimag(z), -creal(z)); |
9 | } |
Note:
See TracBrowser
for help on using the repository browser.