summaryrefslogtreecommitdiff
path: root/src/elementaryFunctions/tan/ctana.c
diff options
context:
space:
mode:
authorjofret2007-01-29 17:02:35 +0000
committerjofret2007-01-29 17:02:35 +0000
commit170334ed9128da4a2f916d88ba52db0988e1d119 (patch)
treeb73d501433e15e52e04a6e6237b2e552e8da5da9 /src/elementaryFunctions/tan/ctana.c
parentc24d5795ea30345dee4cb5f308de7021ba0ef00b (diff)
downloadscilab2c-170334ed9128da4a2f916d88ba52db0988e1d119.tar.gz
scilab2c-170334ed9128da4a2f916d88ba52db0988e1d119.tar.bz2
scilab2c-170334ed9128da4a2f916d88ba52db0988e1d119.zip
Need to have a clear answer about STDC99 for complex implementation !
Add som tests.
Diffstat (limited to 'src/elementaryFunctions/tan/ctana.c')
-rw-r--r--src/elementaryFunctions/tan/ctana.c28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/elementaryFunctions/tan/ctana.c b/src/elementaryFunctions/tan/ctana.c
new file mode 100644
index 00000000..77a6df0c
--- /dev/null
+++ b/src/elementaryFunctions/tan/ctana.c
@@ -0,0 +1,28 @@
+/*
+** -*- C -*-
+**
+** ctana.c
+** Made by Bruno JOFRET <bruno.jofret@inria.fr>
+**
+** Started on Thu Dec 7 14:54:24 2006 jofret
+** Last update Mon Jan 29 16:12:36 2007 jofret
+**
+** Copyright INRIA 2006
+*/
+
+
+#ifndef STDC99
+#include "floatComplex.h"
+#else
+#include <complex.h>
+typedef float complex floatComplex;
+#endif
+
+floatComplex ctans(floatComplex);
+
+void ctana(floatComplex* x, int strideX, floatComplex* y, int strideY, int size) {
+ int i = 0;
+ for (i = 0; i < size; ++i) {
+ y[i] = ctans(x[i]);
+ }
+}