summaryrefslogtreecommitdiff
path: root/2.3-1/src/c/elementaryFunctions/Trigonometry/cosd/dcosda.c
diff options
context:
space:
mode:
Diffstat (limited to '2.3-1/src/c/elementaryFunctions/Trigonometry/cosd/dcosda.c')
-rw-r--r--2.3-1/src/c/elementaryFunctions/Trigonometry/cosd/dcosda.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/2.3-1/src/c/elementaryFunctions/Trigonometry/cosd/dcosda.c b/2.3-1/src/c/elementaryFunctions/Trigonometry/cosd/dcosda.c
new file mode 100644
index 00000000..b48876e3
--- /dev/null
+++ b/2.3-1/src/c/elementaryFunctions/Trigonometry/cosd/dcosda.c
@@ -0,0 +1,14 @@
+#include "cosd.h"
+#include <math.h>
+
+void dcosda(double* in,int size,double* out)
+{
+ double val=0.0;
+ val =3.14159265/180.0;
+ int i=0;
+ for (i=0;i<size;i++)
+ {
+ out[i] = cos(in[i]*val);
+ }
+}
+