From 4abab5ad6c8465a7528ccdd5f49367da05f78bbd Mon Sep 17 00:00:00 2001 From: Vladimir Azarov Date: Tue, 1 Oct 2024 15:47:05 +0200 Subject: Initial version --- src/complex/csinl.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 src/complex/csinl.c (limited to 'src/complex/csinl.c') diff --git a/src/complex/csinl.c b/src/complex/csinl.c new file mode 100644 index 0000000..90a4eb3 --- /dev/null +++ b/src/complex/csinl.c @@ -0,0 +1,14 @@ +#include "complex_impl.h" + +#if LDBL_MANT_DIG == 53 && LDBL_MAX_EXP == 1024 +long double complex csinl(long double complex z) +{ + return csin(z); +} +#else +long double complex csinl(long double complex z) +{ + z = csinhl(CMPLXL(-cimagl(z), creall(z))); + return CMPLXL(cimagl(z), -creall(z)); +} +#endif -- cgit v1.2.3