summaryrefslogtreecommitdiff
path: root/lib/libm/csinhl.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libm/csinhl.c')
-rw-r--r--lib/libm/csinhl.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/libm/csinhl.c b/lib/libm/csinhl.c
new file mode 100644
index 00000000..3b840339
--- /dev/null
+++ b/lib/libm/csinhl.c
@@ -0,0 +1,12 @@
+#include "__complex.h"
+
+long double complex csinhl(long double complex z)
+{
+ long double x, y;
+
+ x = creall(z);
+ y = cimagl(z);
+
+ return sinhl(x) * cosl(y) +
+ (coshl(x) * sinl(y)) * (long double complex)I;
+}