summaryrefslogtreecommitdiffstats
path: root/libf2c/libF77/c_cos.c
diff options
context:
space:
mode:
Diffstat (limited to 'libf2c/libF77/c_cos.c')
-rw-r--r--libf2c/libF77/c_cos.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/libf2c/libF77/c_cos.c b/libf2c/libF77/c_cos.c
new file mode 100644
index 0000000..5965975
--- /dev/null
+++ b/libf2c/libF77/c_cos.c
@@ -0,0 +1,12 @@
+#include "f2c.h"
+
+#undef abs
+#include "math.h"
+
+void
+c_cos (complex * r, complex * z)
+{
+ double zi = z->i, zr = z->r;
+ r->r = cos (zr) * cosh (zi);
+ r->i = -sin (zr) * sinh (zi);
+}
OpenPOWER on IntegriCloud