summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjofret2008-06-16 15:33:31 +0000
committerjofret2008-06-16 15:33:31 +0000
commit0e7d65fdf7294423f1ff2b12cd5cb9ed1e6ec085 (patch)
tree98c4aa916e06d8eb4f92629aafce5ec0f9c8f545
parent5dcc4dcac910a4fc82d037e899f960ef2dc7cf3f (diff)
downloadscilab2c-0e7d65fdf7294423f1ff2b12cd5cb9ed1e6ec085.tar.gz
scilab2c-0e7d65fdf7294423f1ff2b12cd5cb9ed1e6ec085.tar.bz2
scilab2c-0e7d65fdf7294423f1ff2b12cd5cb9ed1e6ec085.zip
Adding pow
-rw-r--r--src/elementaryFunctions/Makefile.am3
-rw-r--r--src/elementaryFunctions/Makefile.in3
-rw-r--r--src/elementaryFunctions/includes/pow.h35
3 files changed, 39 insertions, 2 deletions
diff --git a/src/elementaryFunctions/Makefile.am b/src/elementaryFunctions/Makefile.am
index 5d972e11..4716ff64 100644
--- a/src/elementaryFunctions/Makefile.am
+++ b/src/elementaryFunctions/Makefile.am
@@ -28,4 +28,5 @@ SUBDIRS= cos \
log10 \
sqrt \
asin \
- lnp1m1
+ lnp1m1 \
+ pow
diff --git a/src/elementaryFunctions/Makefile.in b/src/elementaryFunctions/Makefile.in
index 19c9910c..2a839ac2 100644
--- a/src/elementaryFunctions/Makefile.in
+++ b/src/elementaryFunctions/Makefile.in
@@ -183,7 +183,8 @@ SUBDIRS = cos \
log10 \
sqrt \
asin \
- lnp1m1
+ lnp1m1 \
+ pow
all: all-recursive
diff --git a/src/elementaryFunctions/includes/pow.h b/src/elementaryFunctions/includes/pow.h
new file mode 100644
index 00000000..ab85a5c2
--- /dev/null
+++ b/src/elementaryFunctions/includes/pow.h
@@ -0,0 +1,35 @@
+/*
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2008-2008 - INRIA - Bruno JOFRET
+ *
+ * This file must be used under the terms of the CeCILL.
+ * This source file is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at
+ * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
+ *
+ */
+
+#ifndef __POW_H__
+#define __POW_H__
+
+#include "floatComplex.h"
+#include "doubleComplex.h"
+
+float spows(float value, float expand);
+
+double dpows(double value, double expand);
+
+floatComplex cpows(floatComplex value, floatComplex expand);
+
+doubleComplex zpows(doubleComplex value, doubleComplex expand);
+
+void spowa(float *value, int size, float expand, float *out);
+
+void dpowa(double *value, int size, double expand, double *out);
+
+void cpowa(floatComplex *value, int size, floatComplex expand, floatComplex *out);
+
+void zpowa(doubleComplex *value, int size, doubleComplex expand, doubleComplex *out);
+
+#endif /* !__POW_H__ */