diff options
author | jofret | 2007-01-05 15:29:03 +0000 |
---|---|---|
committer | jofret | 2007-01-05 15:29:03 +0000 |
commit | 840757ed3de8916bef4636e8011e4597733e2e92 (patch) | |
tree | 08668917029b233d1ef7deadb787082f497ba4a6 /src/elementaryFunctions/acos/cacosa.c | |
parent | 06cff68b037ef9a3b9b78a40cd15e5bccfbe269d (diff) | |
download | scilab2c-840757ed3de8916bef4636e8011e4597733e2e92.tar.gz scilab2c-840757ed3de8916bef4636e8011e4597733e2e92.tar.bz2 scilab2c-840757ed3de8916bef4636e8011e4597733e2e92.zip |
ArcCosine and ArcSine functions in basic cases.
Diffstat (limited to 'src/elementaryFunctions/acos/cacosa.c')
-rw-r--r-- | src/elementaryFunctions/acos/cacosa.c | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src/elementaryFunctions/acos/cacosa.c b/src/elementaryFunctions/acos/cacosa.c new file mode 100644 index 00000000..da1f5b69 --- /dev/null +++ b/src/elementaryFunctions/acos/cacosa.c @@ -0,0 +1,29 @@ +/* +** -*- C -*- +** +** cacosa.c +** Made by Bruno JOFRET <bruno.jofret@inria.fr> +** +** Started on Fri Jan 5 10:23:49 2007 jofret +** Last update Fri Jan 5 10:24:21 2007 jofret +** +** Copyright INRIA 2007 +*/ + + + +#ifndef STDC99 +#include "floatComplex.h" +#else +#include <complex.h> +typedef float complex floatComplex; +#endif + +floatComplex cacoss(floatComplex); + +void cacosa(floatComplex* x, int strideX, floatComplex* y, int strideY, int size) { + int i = 0; + for (i = 0; i < size; ++i) { + y[i] = cacoss(x[i]); + } +} |