projects
/
libm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
extend cmath (some of the functions are dummy)
[libm]
/
src
/
cmath
/
csin.c
diff --git
a/src/cmath/csin.c
b/src/cmath/csin.c
index
ab72055
..
246a459
100644
(file)
--- a/
src/cmath/csin.c
+++ b/
src/cmath/csin.c
@@
-1,9
+1,9
@@
#include "libm.h"
#include "libm.h"
+/* sin(z) = -i sinh(i z) */
+
double complex csin(double complex z)
{
double complex csin(double complex z)
{
- double complex r;
-
- r = csinh(cpack(-cimag(z), creal(z)));
- return cpack(cimag(r), -creal(r));
+ z = csinh(cpack(-cimag(z), creal(z)));
+ return cpack(cimag(z), -creal(z));
}
}