Meg's Mirrors
zig
about
heads
tags
log
tree
search
Search
zig
lib
libc
musl
src
complex
csin.c
pretty
plain
permalink
blame
history
•
9 lines
•
174 B
1
#include "complex_impl.h"
2
3
/* sin(z) = -i sinh(i z) */
4
5
double complex csin(double complex z)
6
{
7
	z = csinh(CMPLX(-cimag(z), creal(z)));
8
	return CMPLX(cimag(z), -creal(z));
9
}