From 840757ed3de8916bef4636e8011e4597733e2e92 Mon Sep 17 00:00:00 2001 From: jofret Date: Fri, 5 Jan 2007 15:29:03 +0000 Subject: ArcCosine and ArcSine functions in basic cases. --- src/elementaryFunctions/acos/zacosa.c | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 src/elementaryFunctions/acos/zacosa.c (limited to 'src/elementaryFunctions/acos/zacosa.c') diff --git a/src/elementaryFunctions/acos/zacosa.c b/src/elementaryFunctions/acos/zacosa.c new file mode 100644 index 00000000..e8c5387d --- /dev/null +++ b/src/elementaryFunctions/acos/zacosa.c @@ -0,0 +1,27 @@ +/* +** -*- C -*- +** +** zacosa.c +** Made by Bruno JOFRET +** +** Started on Fri Jan 5 10:25:14 2007 jofret +** Last update Fri Jan 5 10:25:34 2007 jofret +** +** Copyright INRIA 2007 +*/ + +#ifndef STDC99 +#include "doubleComplex.h" +#else +#include +typedef double complex doubleComplex; +#endif + +doubleComplex zacoss(doubleComplex); + +void zacosa(doubleComplex* x, int strideX, doubleComplex* y, int strideY, int size) { + int i = 0; + for (i = 0; i < size; ++i) { + y[i] = zacoss(x[i]); + } +} -- cgit