mirror of
https://github.com/ziglang/zig.git
synced 2026-02-06 06:27:05 +00:00
10 lines
174 B
C
Vendored
10 lines
174 B
C
Vendored
#include "complex_impl.h"
|
|
|
|
/* sin(z) = -i sinh(i z) */
|
|
|
|
double complex csin(double complex z)
|
|
{
|
|
z = csinh(CMPLX(-cimag(z), creal(z)));
|
|
return CMPLX(cimag(z), -creal(z));
|
|
}
|