summaryrefslogtreecommitdiff
path: root/src/c/elementaryFunctions
diff options
context:
space:
mode:
Diffstat (limited to 'src/c/elementaryFunctions')
-rw-r--r--src/c/elementaryFunctions/Trigonometry/csc/zcscs.c3
-rw-r--r--src/c/elementaryFunctions/discrete_mathematics/factor/dfactors.c11
-rw-r--r--src/c/elementaryFunctions/discrete_mathematics/factor/sfactors.c11
-rw-r--r--src/c/elementaryFunctions/discrete_mathematics/factorial/dfactoriala.c11
-rw-r--r--src/c/elementaryFunctions/discrete_mathematics/factorial/dfactorials.c11
-rw-r--r--src/c/elementaryFunctions/discrete_mathematics/factorial/sfactoriala.c11
-rw-r--r--src/c/elementaryFunctions/discrete_mathematics/factorial/sfactorials.c11
-rw-r--r--src/c/elementaryFunctions/discrete_mathematics/primes/dprimess.c11
-rw-r--r--src/c/elementaryFunctions/discrete_mathematics/primes/sprimess.c11
-rw-r--r--src/c/elementaryFunctions/float/dfloata.c13
-rw-r--r--src/c/elementaryFunctions/float/dfloats.c13
-rw-r--r--src/c/elementaryFunctions/float/i16floata.c13
-rw-r--r--src/c/elementaryFunctions/float/i16floats.c13
-rw-r--r--src/c/elementaryFunctions/float/i8floata.c13
-rw-r--r--src/c/elementaryFunctions/float/i8floats.c13
-rw-r--r--src/c/elementaryFunctions/float/sfloata.c13
-rw-r--r--src/c/elementaryFunctions/float/sfloats.c13
-rw-r--r--src/c/elementaryFunctions/float/u16floata.c13
-rw-r--r--src/c/elementaryFunctions/float/u16floats.c13
-rw-r--r--src/c/elementaryFunctions/float/u8floata.c13
-rw-r--r--src/c/elementaryFunctions/float/u8floats.c13
-rw-r--r--src/c/elementaryFunctions/includes/get_float.h (renamed from src/c/elementaryFunctions/includes/float.h)6
-rw-r--r--src/c/elementaryFunctions/includes/interp1.h38
-rw-r--r--src/c/elementaryFunctions/interfaces/int_interp1.h35
-rw-r--r--src/c/elementaryFunctions/interpolation/dinterp1s.c26
-rw-r--r--src/c/elementaryFunctions/radix_conversions/base2dec/dbase2decs.c11
-rw-r--r--src/c/elementaryFunctions/radix_conversions/base2dec/gbase2decs.c15
-rw-r--r--src/c/elementaryFunctions/radix_conversions/bin2dec/dbin2deca.c11
-rw-r--r--src/c/elementaryFunctions/radix_conversions/bin2dec/dbin2decs.c11
-rw-r--r--src/c/elementaryFunctions/radix_conversions/bin2dec/i16bin2deca.c11
-rw-r--r--src/c/elementaryFunctions/radix_conversions/bin2dec/i16bin2decs.c11
-rw-r--r--src/c/elementaryFunctions/radix_conversions/bin2dec/i8bin2deca.c11
-rw-r--r--src/c/elementaryFunctions/radix_conversions/bin2dec/i8bin2decs.c11
-rw-r--r--src/c/elementaryFunctions/radix_conversions/bin2dec/u16bin2deca.c11
-rw-r--r--src/c/elementaryFunctions/radix_conversions/bin2dec/u16bin2decs.c11
-rw-r--r--src/c/elementaryFunctions/radix_conversions/bin2dec/u8bin2deca.c11
-rw-r--r--src/c/elementaryFunctions/radix_conversions/bin2dec/u8bin2decs.c11
-rw-r--r--src/c/elementaryFunctions/radix_conversions/dec2base/ddec2basea.c11
-rw-r--r--src/c/elementaryFunctions/radix_conversions/dec2base/ddec2bases.c11
-rw-r--r--src/c/elementaryFunctions/radix_conversions/dec2base/sdec2basea.c11
-rw-r--r--src/c/elementaryFunctions/radix_conversions/dec2base/sdec2bases.c11
-rw-r--r--src/c/elementaryFunctions/radix_conversions/dec2bin/ddec2bina.c11
-rw-r--r--src/c/elementaryFunctions/radix_conversions/dec2bin/ddec2bins.c11
-rw-r--r--src/c/elementaryFunctions/radix_conversions/dec2bin/i16dec2bina.c11
-rw-r--r--src/c/elementaryFunctions/radix_conversions/dec2bin/i16dec2bins.c11
-rw-r--r--src/c/elementaryFunctions/radix_conversions/dec2bin/i8dec2bina.c11
-rw-r--r--src/c/elementaryFunctions/radix_conversions/dec2bin/i8dec2bins.c11
-rw-r--r--src/c/elementaryFunctions/radix_conversions/dec2bin/u16dec2bina.c11
-rw-r--r--src/c/elementaryFunctions/radix_conversions/dec2bin/u16dec2bins.c11
-rw-r--r--src/c/elementaryFunctions/radix_conversions/dec2bin/u8dec2bina.c11
-rw-r--r--src/c/elementaryFunctions/radix_conversions/dec2bin/u8dec2bins.c11
-rw-r--r--src/c/elementaryFunctions/radix_conversions/dec2hex/ddec2hexa.c11
-rw-r--r--src/c/elementaryFunctions/radix_conversions/dec2hex/ddec2hexs.c11
-rw-r--r--src/c/elementaryFunctions/radix_conversions/dec2hex/i16dec2hexa.c11
-rw-r--r--src/c/elementaryFunctions/radix_conversions/dec2hex/i16dec2hexs.c11
-rw-r--r--src/c/elementaryFunctions/radix_conversions/dec2hex/i8dec2hexa.c11
-rw-r--r--src/c/elementaryFunctions/radix_conversions/dec2hex/i8dec2hexs.c11
-rw-r--r--src/c/elementaryFunctions/radix_conversions/dec2hex/u16dec2hexa.c11
-rw-r--r--src/c/elementaryFunctions/radix_conversions/dec2hex/u16dec2hexs.c11
-rw-r--r--src/c/elementaryFunctions/radix_conversions/dec2hex/u8dec2hexa.c11
-rw-r--r--src/c/elementaryFunctions/radix_conversions/dec2hex/u8dec2hexs.c11
-rw-r--r--src/c/elementaryFunctions/radix_conversions/dec2oct/ddec2octa.c11
-rw-r--r--src/c/elementaryFunctions/radix_conversions/dec2oct/ddec2octs.c11
-rw-r--r--src/c/elementaryFunctions/radix_conversions/dec2oct/i16dec2octa.c11
-rw-r--r--src/c/elementaryFunctions/radix_conversions/dec2oct/i16dec2octs.c11
-rw-r--r--src/c/elementaryFunctions/radix_conversions/dec2oct/i8dec2octa.c11
-rw-r--r--src/c/elementaryFunctions/radix_conversions/dec2oct/i8dec2octs.c11
-rw-r--r--src/c/elementaryFunctions/radix_conversions/dec2oct/u16dec2octa.c11
-rw-r--r--src/c/elementaryFunctions/radix_conversions/dec2oct/u16dec2octs.c11
-rw-r--r--src/c/elementaryFunctions/radix_conversions/dec2oct/u8dec2octa.c11
-rw-r--r--src/c/elementaryFunctions/radix_conversions/dec2oct/u8dec2octs.c11
-rw-r--r--src/c/elementaryFunctions/radix_conversions/hex2dec/dhex2decs.c11
-rw-r--r--src/c/elementaryFunctions/radix_conversions/hex2dec/ghex2decs.c11
-rw-r--r--src/c/elementaryFunctions/radix_conversions/oct2dec/doct2deca.c11
-rw-r--r--src/c/elementaryFunctions/radix_conversions/oct2dec/doct2decs.c11
-rw-r--r--src/c/elementaryFunctions/radix_conversions/oct2dec/i16oct2deca.c11
-rw-r--r--src/c/elementaryFunctions/radix_conversions/oct2dec/i16oct2decs.c11
-rw-r--r--src/c/elementaryFunctions/radix_conversions/oct2dec/i8oct2deca.c11
-rw-r--r--src/c/elementaryFunctions/radix_conversions/oct2dec/i8oct2decs.c11
-rw-r--r--src/c/elementaryFunctions/radix_conversions/oct2dec/u16oct2deca.c11
-rw-r--r--src/c/elementaryFunctions/radix_conversions/oct2dec/u16oct2decs.c11
-rw-r--r--src/c/elementaryFunctions/radix_conversions/oct2dec/u8oct2deca.c11
-rw-r--r--src/c/elementaryFunctions/radix_conversions/oct2dec/u8oct2decs.c11
-rw-r--r--src/c/elementaryFunctions/special_functions/gamma/dgammas.c52
84 files changed, 876 insertions, 170 deletions
diff --git a/src/c/elementaryFunctions/Trigonometry/csc/zcscs.c b/src/c/elementaryFunctions/Trigonometry/csc/zcscs.c
index c0b692d..bbb1526 100644
--- a/src/c/elementaryFunctions/Trigonometry/csc/zcscs.c
+++ b/src/c/elementaryFunctions/Trigonometry/csc/zcscs.c
@@ -13,7 +13,6 @@ doubleComplex zcscs(doubleComplex z)
//out = zrdivs(DoubleComplex(1,0),zsins(z));
double real = zreals(z);
double imag = zimags(z);
- printf("%d , %d",real,imag);
-return zrdivs(1+0*%i,(DoubleComplex(dsins(real) * dcoshs(imag), dcoss(real) * dsinhs(imag))));
+ return zrdivs(DoubleComplex(1,0),(DoubleComplex(dsins(real) * dcoshs(imag), dcoss(real) * dsinhs(imag))));
//return out;
}
diff --git a/src/c/elementaryFunctions/discrete_mathematics/factor/dfactors.c b/src/c/elementaryFunctions/discrete_mathematics/factor/dfactors.c
index 210670b..9801943 100644
--- a/src/c/elementaryFunctions/discrete_mathematics/factor/dfactors.c
+++ b/src/c/elementaryFunctions/discrete_mathematics/factor/dfactors.c
@@ -1,3 +1,14 @@
+/* Copyright (C) 2017 - IIT Bombay - FOSSEE
+
+ 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
+ Organization: FOSSEE, IIT Bombay
+ Author: Shamik Guha
+ Email: toolbox@scilab.in
+*/
# include <stdio.h>
# include <math.h>
diff --git a/src/c/elementaryFunctions/discrete_mathematics/factor/sfactors.c b/src/c/elementaryFunctions/discrete_mathematics/factor/sfactors.c
index 9a37140..2e5ba47 100644
--- a/src/c/elementaryFunctions/discrete_mathematics/factor/sfactors.c
+++ b/src/c/elementaryFunctions/discrete_mathematics/factor/sfactors.c
@@ -1,3 +1,14 @@
+/* Copyright (C) 2017 - IIT Bombay - FOSSEE
+
+ 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
+ Organization: FOSSEE, IIT Bombay
+ Author: Shamik Guha
+ Email: toolbox@scilab.in
+*/
# include <stdio.h>
# include <math.h>
diff --git a/src/c/elementaryFunctions/discrete_mathematics/factorial/dfactoriala.c b/src/c/elementaryFunctions/discrete_mathematics/factorial/dfactoriala.c
index de06aaa..68a118b 100644
--- a/src/c/elementaryFunctions/discrete_mathematics/factorial/dfactoriala.c
+++ b/src/c/elementaryFunctions/discrete_mathematics/factorial/dfactoriala.c
@@ -1,3 +1,14 @@
+/* Copyright (C) 2017 - IIT Bombay - FOSSEE
+
+ 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
+ Organization: FOSSEE, IIT Bombay
+ Author: Shamik Guha
+ Email: toolbox@scilab.in
+*/
#include "factorial.h"
#include <math.h>
diff --git a/src/c/elementaryFunctions/discrete_mathematics/factorial/dfactorials.c b/src/c/elementaryFunctions/discrete_mathematics/factorial/dfactorials.c
index 28c787e..354eb6a 100644
--- a/src/c/elementaryFunctions/discrete_mathematics/factorial/dfactorials.c
+++ b/src/c/elementaryFunctions/discrete_mathematics/factorial/dfactorials.c
@@ -1,3 +1,14 @@
+/* Copyright (C) 2017 - IIT Bombay - FOSSEE
+
+ 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
+ Organization: FOSSEE, IIT Bombay
+ Author: Shamik Guha
+ Email: toolbox@scilab.in
+*/
#include <stdio.h>
#include <math.h>
#include "factorial.h"
diff --git a/src/c/elementaryFunctions/discrete_mathematics/factorial/sfactoriala.c b/src/c/elementaryFunctions/discrete_mathematics/factorial/sfactoriala.c
index e7d820b..14f46d8 100644
--- a/src/c/elementaryFunctions/discrete_mathematics/factorial/sfactoriala.c
+++ b/src/c/elementaryFunctions/discrete_mathematics/factorial/sfactoriala.c
@@ -1,3 +1,14 @@
+/* Copyright (C) 2017 - IIT Bombay - FOSSEE
+
+ 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
+ Organization: FOSSEE, IIT Bombay
+ Author: Shamik Guha
+ Email: toolbox@scilab.in
+*/
#include "factorial.h"
#include <math.h>
diff --git a/src/c/elementaryFunctions/discrete_mathematics/factorial/sfactorials.c b/src/c/elementaryFunctions/discrete_mathematics/factorial/sfactorials.c
index b660702..e4f1017 100644
--- a/src/c/elementaryFunctions/discrete_mathematics/factorial/sfactorials.c
+++ b/src/c/elementaryFunctions/discrete_mathematics/factorial/sfactorials.c
@@ -1,3 +1,14 @@
+/* Copyright (C) 2017 - IIT Bombay - FOSSEE
+
+ 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
+ Organization: FOSSEE, IIT Bombay
+ Author: Shamik Guha
+ Email: toolbox@scilab.in
+*/
#include <stdio.h>
#include <math.h>
#include "factorial.h"
diff --git a/src/c/elementaryFunctions/discrete_mathematics/primes/dprimess.c b/src/c/elementaryFunctions/discrete_mathematics/primes/dprimess.c
index 5ecb92e..3aa0af4 100644
--- a/src/c/elementaryFunctions/discrete_mathematics/primes/dprimess.c
+++ b/src/c/elementaryFunctions/discrete_mathematics/primes/dprimess.c
@@ -1,3 +1,14 @@
+/* Copyright (C) 2017 - IIT Bombay - FOSSEE
+
+ 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
+ Organization: FOSSEE, IIT Bombay
+ Author: Shamik Guha
+ Email: toolbox@scilab.in
+*/
#include<stdio.h>
#include "primes.h"
void dprimess(double in, double* out)
diff --git a/src/c/elementaryFunctions/discrete_mathematics/primes/sprimess.c b/src/c/elementaryFunctions/discrete_mathematics/primes/sprimess.c
index 14aa236..bff39d7 100644
--- a/src/c/elementaryFunctions/discrete_mathematics/primes/sprimess.c
+++ b/src/c/elementaryFunctions/discrete_mathematics/primes/sprimess.c
@@ -1,3 +1,14 @@
+/* Copyright (C) 2017 - IIT Bombay - FOSSEE
+
+ 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
+ Organization: FOSSEE, IIT Bombay
+ Author: Shamik Guha
+ Email: toolbox@scilab.in
+*/
#include<stdio.h>
#include "primes.h"
void sprimess(float in, float* out)
diff --git a/src/c/elementaryFunctions/float/dfloata.c b/src/c/elementaryFunctions/float/dfloata.c
index e27b0a1..9705bd1 100644
--- a/src/c/elementaryFunctions/float/dfloata.c
+++ b/src/c/elementaryFunctions/float/dfloata.c
@@ -1,4 +1,15 @@
-#include "float.h"
+/* Copyright (C) 2017 - IIT Bombay - FOSSEE
+
+ 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
+ Organization: FOSSEE, IIT Bombay
+ Author: Shamik Guha
+ Email: toolbox@scilab.in
+*/
+#include "get_float.h"
void dfloata(double* x, int size, float* out) {
int i = 0;
diff --git a/src/c/elementaryFunctions/float/dfloats.c b/src/c/elementaryFunctions/float/dfloats.c
index a56c24c..ece554a 100644
--- a/src/c/elementaryFunctions/float/dfloats.c
+++ b/src/c/elementaryFunctions/float/dfloats.c
@@ -1,4 +1,15 @@
-#include "float.h"
+/* Copyright (C) 2017 - IIT Bombay - FOSSEE
+
+ 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
+ Organization: FOSSEE, IIT Bombay
+ Author: Shamik Guha
+ Email: toolbox@scilab.in
+*/
+#include "get_float.h"
float dfloats(double x) {
return (float) x;
diff --git a/src/c/elementaryFunctions/float/i16floata.c b/src/c/elementaryFunctions/float/i16floata.c
index e2366b7..c8113af 100644
--- a/src/c/elementaryFunctions/float/i16floata.c
+++ b/src/c/elementaryFunctions/float/i16floata.c
@@ -1,4 +1,15 @@
-#include "float.h"
+/* Copyright (C) 2017 - IIT Bombay - FOSSEE
+
+ 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
+ Organization: FOSSEE, IIT Bombay
+ Author: Shamik Guha
+ Email: toolbox@scilab.in
+*/
+#include "get_float.h"
void i16floata(int16* x, int size, float* out) {
int i = 0;
diff --git a/src/c/elementaryFunctions/float/i16floats.c b/src/c/elementaryFunctions/float/i16floats.c
index c0c073c..9f3ee06 100644
--- a/src/c/elementaryFunctions/float/i16floats.c
+++ b/src/c/elementaryFunctions/float/i16floats.c
@@ -1,4 +1,15 @@
-#include "float.h"
+/* Copyright (C) 2017 - IIT Bombay - FOSSEE
+
+ 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
+ Organization: FOSSEE, IIT Bombay
+ Author: Shamik Guha
+ Email: toolbox@scilab.in
+*/
+#include "get_float.h"
float i16floats(int16 x) {
return (float) x;
diff --git a/src/c/elementaryFunctions/float/i8floata.c b/src/c/elementaryFunctions/float/i8floata.c
index b578fe5..52f9a6a 100644
--- a/src/c/elementaryFunctions/float/i8floata.c
+++ b/src/c/elementaryFunctions/float/i8floata.c
@@ -1,4 +1,15 @@
-#include "float.h"
+/* Copyright (C) 2017 - IIT Bombay - FOSSEE
+
+ 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
+ Organization: FOSSEE, IIT Bombay
+ Author: Shamik Guha
+ Email: toolbox@scilab.in
+*/
+#include "get_float.h"
void i8floata(int8* x, int size, float* out) {
int i = 0;
diff --git a/src/c/elementaryFunctions/float/i8floats.c b/src/c/elementaryFunctions/float/i8floats.c
index 15e4fc7..88127b3 100644
--- a/src/c/elementaryFunctions/float/i8floats.c
+++ b/src/c/elementaryFunctions/float/i8floats.c
@@ -1,4 +1,15 @@
-#include "float.h"
+/* Copyright (C) 2017 - IIT Bombay - FOSSEE
+
+ 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
+ Organization: FOSSEE, IIT Bombay
+ Author: Shamik Guha
+ Email: toolbox@scilab.in
+*/
+#include "get_float.h"
float i8floats(int8 x) {
return (float) x;
diff --git a/src/c/elementaryFunctions/float/sfloata.c b/src/c/elementaryFunctions/float/sfloata.c
index c7583ba..3433706 100644
--- a/src/c/elementaryFunctions/float/sfloata.c
+++ b/src/c/elementaryFunctions/float/sfloata.c
@@ -1,4 +1,15 @@
-#include "float.h"
+/* Copyright (C) 2017 - IIT Bombay - FOSSEE
+
+ 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
+ Organization: FOSSEE, IIT Bombay
+ Author: Shamik Guha
+ Email: toolbox@scilab.in
+*/
+#include "get_float.h"
void sfloata(float* x, int size, float* out) {
int i = 0;
diff --git a/src/c/elementaryFunctions/float/sfloats.c b/src/c/elementaryFunctions/float/sfloats.c
index e579186..3351fb0 100644
--- a/src/c/elementaryFunctions/float/sfloats.c
+++ b/src/c/elementaryFunctions/float/sfloats.c
@@ -1,4 +1,15 @@
-#include "float.h"
+/* Copyright (C) 2017 - IIT Bombay - FOSSEE
+
+ 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
+ Organization: FOSSEE, IIT Bombay
+ Author: Shamik Guha
+ Email: toolbox@scilab.in
+*/
+#include "get_float.h"
float sfloats(float x) {
return (float) x;
diff --git a/src/c/elementaryFunctions/float/u16floata.c b/src/c/elementaryFunctions/float/u16floata.c
index 28867cb..febe5e0 100644
--- a/src/c/elementaryFunctions/float/u16floata.c
+++ b/src/c/elementaryFunctions/float/u16floata.c
@@ -1,4 +1,15 @@
-#include "float.h"
+/* Copyright (C) 2017 - IIT Bombay - FOSSEE
+
+ 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
+ Organization: FOSSEE, IIT Bombay
+ Author: Shamik Guha
+ Email: toolbox@scilab.in
+*/
+#include "get_float.h"
void u16floata(uint16* x, int size, float* out) {
int i = 0;
diff --git a/src/c/elementaryFunctions/float/u16floats.c b/src/c/elementaryFunctions/float/u16floats.c
index f46275d..47e19ae 100644
--- a/src/c/elementaryFunctions/float/u16floats.c
+++ b/src/c/elementaryFunctions/float/u16floats.c
@@ -1,4 +1,15 @@
-#include "float.h"
+/* Copyright (C) 2017 - IIT Bombay - FOSSEE
+
+ 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
+ Organization: FOSSEE, IIT Bombay
+ Author: Shamik Guha
+ Email: toolbox@scilab.in
+*/
+#include "get_float.h"
float u16floats(uint16 x) {
return (float) x;
diff --git a/src/c/elementaryFunctions/float/u8floata.c b/src/c/elementaryFunctions/float/u8floata.c
index 8455420..a4a1fec 100644
--- a/src/c/elementaryFunctions/float/u8floata.c
+++ b/src/c/elementaryFunctions/float/u8floata.c
@@ -1,4 +1,15 @@
-#include "float.h"
+/* Copyright (C) 2017 - IIT Bombay - FOSSEE
+
+ 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
+ Organization: FOSSEE, IIT Bombay
+ Author: Shamik Guha
+ Email: toolbox@scilab.in
+*/
+#include "get_float.h"
void u8floata(uint8* x, int size, float* out) {
int i = 0;
diff --git a/src/c/elementaryFunctions/float/u8floats.c b/src/c/elementaryFunctions/float/u8floats.c
index f2b4c26..8b7dd8d 100644
--- a/src/c/elementaryFunctions/float/u8floats.c
+++ b/src/c/elementaryFunctions/float/u8floats.c
@@ -1,4 +1,15 @@
-#include "float.h"
+/* Copyright (C) 2017 - IIT Bombay - FOSSEE
+
+ 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
+ Organization: FOSSEE, IIT Bombay
+ Author: Shamik Guha
+ Email: toolbox@scilab.in
+*/
+#include "get_float.h"
float u8floats(uint8 x) {
return (float) x;
diff --git a/src/c/elementaryFunctions/includes/float.h b/src/c/elementaryFunctions/includes/get_float.h
index 885564b..1ada71c 100644
--- a/src/c/elementaryFunctions/includes/float.h
+++ b/src/c/elementaryFunctions/includes/get_float.h
@@ -10,8 +10,8 @@
*
*/
-#ifndef __FLOAT_H__
-#define __FLOAT_H__
+#ifndef __GET_FLOAT_H__
+#define __GET_FLOAT_H__
#include "dynlib_elementaryfunctions.h"
#include "floatComplex.h"
@@ -50,5 +50,5 @@ EXTERN_ELEMFUNCT void i16floata(int16* in, int size, float* out);
#endif
-#endif /* !__FLOAT_H__ */
+#endif /* !__GET_FLOAT_H__ */
diff --git a/src/c/elementaryFunctions/includes/interp1.h b/src/c/elementaryFunctions/includes/interp1.h
deleted file mode 100644
index caf4243..0000000
--- a/src/c/elementaryFunctions/includes/interp1.h
+++ /dev/null
@@ -1,38 +0,0 @@
-/* Copyright (C) 2016 - IIT Bombay - FOSSEE
-
- 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
- Author: Shamik Guha
- Organization: FOSSEE, IIT Bombay
- Email: toolbox@scilab.in
- */
-#ifndef __INTERP1_H__
-#define __INTERP1_H__
-#include "types.h"
-
- #ifdef __cplusplus
- extern "C" {
- #endif
-
-double dinterp1s(double* x, int size, double* y,int size2, double xin, char* method,int size3);
-//void i8interp1s(int8 in,char* out);
-//void i16interp1s(int16 in,char* out);
-//void u8interp1s(uint8 in,char* out);
-//void u16interp1s(uint16 in,char* out);
-
-//void dinterp1a(double* in,int size,char* out);
-//void i8interp1a(int8* in,int size,char* out);
-//void i16interp1a(int16* in,int size,char* out);
-//void u8interp1a(uint8* in,int size,char* out);
-//void u16interp1a(uint16* in,int size,char* out);
-
-
-
- #ifdef __cplusplus
- } /* extern "C" */
- #endif
-
-#endif /*__INTERP1_H__*/
diff --git a/src/c/elementaryFunctions/interfaces/int_interp1.h b/src/c/elementaryFunctions/interfaces/int_interp1.h
deleted file mode 100644
index bafe915..0000000
--- a/src/c/elementaryFunctions/interfaces/int_interp1.h
+++ /dev/null
@@ -1,35 +0,0 @@
- /* Copyright (C) 2016 - IIT Bombay - FOSSEE
-
- 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
- Author: Shamik Guha
- Organization: FOSSEE, IIT Bombay
- Email: toolbox@scilab.in
- */
-#ifndef __INT_INTERP1_H__
-#define __INT_INTERP1_H__
-
- #ifdef __cplusplus
- extern "C" {
- #endif
-
-#define d2d2d0g2interp1d0(x,size,y,size2,xin,method,size3) dinterp1s(x,size[1],y,size2[1],xin,method,size3[1])
-//#define i80interp1g2(in,out) i8interp1s(in,out)
-//#define i160interp1g2(in,out) i16interp1s(in,out)
-//#define u80interp1g2(in,out) u8interp1s(in,out)
-//#define u160interp1g2(in,out) u16interp1s(in,out)
-
-//#define d2interp1g2(in,size,out) dinterp1a(in,size[0]*size[1],out)
-//#define i82interp1g2(in,size,out) i8interp1a(in,size[0]*size[1],out)
-//#define i162interp1g2(in,size,out) i16interp1a(in,size[0]*size[1],out)
-//#define u82interp1g2(in,size,out) u8interp1a(in,size[0]*size[1],out)
-//#define u162interp1g2(in,size,out) u16interp1a(in,size[0]*size[1],out)
-
- #ifdef __cplusplus
- } /* extern "C" */
- #endif
-
-#endif /*__INT_interp1_H__*/
diff --git a/src/c/elementaryFunctions/interpolation/dinterp1s.c b/src/c/elementaryFunctions/interpolation/dinterp1s.c
deleted file mode 100644
index 17aeb87..0000000
--- a/src/c/elementaryFunctions/interpolation/dinterp1s.c
+++ /dev/null
@@ -1,26 +0,0 @@
-#include <stdio.h>
-#include "interp1.h"
-double dinterp1s(double* x, int size, double* y,int size2, double xin, char* method,int size3)
-{
- double x0=x[0];
- double x1=x[size-1];
- double y0=y[0];
- double y1=y[size2-1];
- double a = (y1 - y0) / (x1 - x0);
- double b = ((-a)*x0) + y0;
- double yout = 0.0;
- yout=(double) ((a*xin) + b);
- return yout;
-}
-
-/*
-int main(void)
-{
- double x0=3, y0=0, x1=5, y1=8;
- double x=4;
- double y = linear_interpolation(x0, y0, x1, y1, x);
- printf("(%f, %f), (%f, %f) for %f = %f\n", x0, y0, x1, y1, x, y);
- return 0;
-
-}
-*/
diff --git a/src/c/elementaryFunctions/radix_conversions/base2dec/dbase2decs.c b/src/c/elementaryFunctions/radix_conversions/base2dec/dbase2decs.c
index 51c42e0..a92fc76 100644
--- a/src/c/elementaryFunctions/radix_conversions/base2dec/dbase2decs.c
+++ b/src/c/elementaryFunctions/radix_conversions/base2dec/dbase2decs.c
@@ -1,3 +1,14 @@
+/* Copyright (C) 2017 - IIT Bombay - FOSSEE
+
+ 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
+ Organization: FOSSEE, IIT Bombay
+ Author: Shamik Guha
+ Email: toolbox@scilab.in
+*/
#include <string.h>
#include "base2dec.h"
#include <stdio.h>
diff --git a/src/c/elementaryFunctions/radix_conversions/base2dec/gbase2decs.c b/src/c/elementaryFunctions/radix_conversions/base2dec/gbase2decs.c
index 9acf266..43e3686 100644
--- a/src/c/elementaryFunctions/radix_conversions/base2dec/gbase2decs.c
+++ b/src/c/elementaryFunctions/radix_conversions/base2dec/gbase2decs.c
@@ -1,5 +1,16 @@
-#include<stdio.h>
-#include<math.h>
+/* Copyright (C) 2017 - IIT Bombay - FOSSEE
+
+ 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
+ Organization: FOSSEE, IIT Bombay
+ Author: Shamik Guha
+ Email: toolbox@scilab.in
+*/
+#include <stdio.h>
+#include <math.h>
#include "base2dec.h"
#include <string.h>
diff --git a/src/c/elementaryFunctions/radix_conversions/bin2dec/dbin2deca.c b/src/c/elementaryFunctions/radix_conversions/bin2dec/dbin2deca.c
index 9baf4bd..96fccc5 100644
--- a/src/c/elementaryFunctions/radix_conversions/bin2dec/dbin2deca.c
+++ b/src/c/elementaryFunctions/radix_conversions/bin2dec/dbin2deca.c
@@ -1,3 +1,14 @@
+/* Copyright (C) 2017 - IIT Bombay - FOSSEE
+
+ 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
+ Organization: FOSSEE, IIT Bombay
+ Author: Shamik Guha
+ Email: toolbox@scilab.in
+*/
#include "bin2dec.h"
void dbin2deca(double* in,int size,double* out)
diff --git a/src/c/elementaryFunctions/radix_conversions/bin2dec/dbin2decs.c b/src/c/elementaryFunctions/radix_conversions/bin2dec/dbin2decs.c
index 1d3cf3a..ff363c3 100644
--- a/src/c/elementaryFunctions/radix_conversions/bin2dec/dbin2decs.c
+++ b/src/c/elementaryFunctions/radix_conversions/bin2dec/dbin2decs.c
@@ -1,3 +1,14 @@
+/* Copyright (C) 2017 - IIT Bombay - FOSSEE
+
+ 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
+ Organization: FOSSEE, IIT Bombay
+ Author: Shamik Guha
+ Email: toolbox@scilab.in
+*/
#include <string.h>
#include "bin2dec.h"
#include <stdlib.h>
diff --git a/src/c/elementaryFunctions/radix_conversions/bin2dec/i16bin2deca.c b/src/c/elementaryFunctions/radix_conversions/bin2dec/i16bin2deca.c
index 1ebc973..8511df9 100644
--- a/src/c/elementaryFunctions/radix_conversions/bin2dec/i16bin2deca.c
+++ b/src/c/elementaryFunctions/radix_conversions/bin2dec/i16bin2deca.c
@@ -1,3 +1,14 @@
+/* Copyright (C) 2017 - IIT Bombay - FOSSEE
+
+ 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
+ Organization: FOSSEE, IIT Bombay
+ Author: Shamik Guha
+ Email: toolbox@scilab.in
+*/
#include "bin2dec.h"
void i16bin2deca(int16* in,int size,int16* out)
diff --git a/src/c/elementaryFunctions/radix_conversions/bin2dec/i16bin2decs.c b/src/c/elementaryFunctions/radix_conversions/bin2dec/i16bin2decs.c
index 0f39541..9aa3be9 100644
--- a/src/c/elementaryFunctions/radix_conversions/bin2dec/i16bin2decs.c
+++ b/src/c/elementaryFunctions/radix_conversions/bin2dec/i16bin2decs.c
@@ -1,3 +1,14 @@
+/* Copyright (C) 2017 - IIT Bombay - FOSSEE
+
+ 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
+ Organization: FOSSEE, IIT Bombay
+ Author: Shamik Guha
+ Email: toolbox@scilab.in
+*/
#include <string.h>
#include "bin2dec.h"
#include <stdlib.h>
diff --git a/src/c/elementaryFunctions/radix_conversions/bin2dec/i8bin2deca.c b/src/c/elementaryFunctions/radix_conversions/bin2dec/i8bin2deca.c
index ad76143..c923ffb 100644
--- a/src/c/elementaryFunctions/radix_conversions/bin2dec/i8bin2deca.c
+++ b/src/c/elementaryFunctions/radix_conversions/bin2dec/i8bin2deca.c
@@ -1,3 +1,14 @@
+/* Copyright (C) 2017 - IIT Bombay - FOSSEE
+
+ 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
+ Organization: FOSSEE, IIT Bombay
+ Author: Shamik Guha
+ Email: toolbox@scilab.in
+*/
#include "bin2dec.h"
void i8bin2deca(int8* in,int size,int8* out)
diff --git a/src/c/elementaryFunctions/radix_conversions/bin2dec/i8bin2decs.c b/src/c/elementaryFunctions/radix_conversions/bin2dec/i8bin2decs.c
index 1863e51..abd3b89 100644
--- a/src/c/elementaryFunctions/radix_conversions/bin2dec/i8bin2decs.c
+++ b/src/c/elementaryFunctions/radix_conversions/bin2dec/i8bin2decs.c
@@ -1,3 +1,14 @@
+/* Copyright (C) 2017 - IIT Bombay - FOSSEE
+
+ 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
+ Organization: FOSSEE, IIT Bombay
+ Author: Shamik Guha
+ Email: toolbox@scilab.in
+*/
#include <string.h>
#include "bin2dec.h"
#include <stdlib.h>
diff --git a/src/c/elementaryFunctions/radix_conversions/bin2dec/u16bin2deca.c b/src/c/elementaryFunctions/radix_conversions/bin2dec/u16bin2deca.c
index 2a4ac15..b6b75d7 100644
--- a/src/c/elementaryFunctions/radix_conversions/bin2dec/u16bin2deca.c
+++ b/src/c/elementaryFunctions/radix_conversions/bin2dec/u16bin2deca.c
@@ -1,3 +1,14 @@
+/* Copyright (C) 2017 - IIT Bombay - FOSSEE
+
+ 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
+ Organization: FOSSEE, IIT Bombay
+ Author: Shamik Guha
+ Email: toolbox@scilab.in
+*/
#include "bin2dec.h"
void u16bin2deca(uint16* in,int size,uint16* out)
diff --git a/src/c/elementaryFunctions/radix_conversions/bin2dec/u16bin2decs.c b/src/c/elementaryFunctions/radix_conversions/bin2dec/u16bin2decs.c
index 0e58b94..cb45a20 100644
--- a/src/c/elementaryFunctions/radix_conversions/bin2dec/u16bin2decs.c
+++ b/src/c/elementaryFunctions/radix_conversions/bin2dec/u16bin2decs.c
@@ -1,3 +1,14 @@
+/* Copyright (C) 2017 - IIT Bombay - FOSSEE
+
+ 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
+ Organization: FOSSEE, IIT Bombay
+ Author: Shamik Guha
+ Email: toolbox@scilab.in
+*/
#include <string.h>
#include "bin2dec.h"
#include <stdlib.h>
diff --git a/src/c/elementaryFunctions/radix_conversions/bin2dec/u8bin2deca.c b/src/c/elementaryFunctions/radix_conversions/bin2dec/u8bin2deca.c
index f775664..10461ca 100644
--- a/src/c/elementaryFunctions/radix_conversions/bin2dec/u8bin2deca.c
+++ b/src/c/elementaryFunctions/radix_conversions/bin2dec/u8bin2deca.c
@@ -1,3 +1,14 @@
+/* Copyright (C) 2017 - IIT Bombay - FOSSEE
+
+ 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
+ Organization: FOSSEE, IIT Bombay
+ Author: Shamik Guha
+ Email: toolbox@scilab.in
+*/
#include "bin2dec.h"
void u8bin2deca(uint8* in,int size,uint8* out)
diff --git a/src/c/elementaryFunctions/radix_conversions/bin2dec/u8bin2decs.c b/src/c/elementaryFunctions/radix_conversions/bin2dec/u8bin2decs.c
index 4198600..0a0f5c4 100644
--- a/src/c/elementaryFunctions/radix_conversions/bin2dec/u8bin2decs.c
+++ b/src/c/elementaryFunctions/radix_conversions/bin2dec/u8bin2decs.c
@@ -1,3 +1,14 @@
+/* Copyright (C) 2017 - IIT Bombay - FOSSEE
+
+ 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
+ Organization: FOSSEE, IIT Bombay
+ Author: Shamik Guha
+ Email: toolbox@scilab.in
+*/
#include <string.h>
#include "bin2dec.h"
#include <stdlib.h>
diff --git a/src/c/elementaryFunctions/radix_conversions/dec2base/ddec2basea.c b/src/c/elementaryFunctions/radix_conversions/dec2base/ddec2basea.c
index eeadcb7..4de34f0 100644
--- a/src/c/elementaryFunctions/radix_conversions/dec2base/ddec2basea.c
+++ b/src/c/elementaryFunctions/radix_conversions/dec2base/ddec2basea.c
@@ -1,3 +1,14 @@
+/* Copyright (C) 2017 - IIT Bombay - FOSSEE
+
+ 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
+ Organization: FOSSEE, IIT Bombay
+ Author: Shamik Guha
+ Email: toolbox@scilab.in
+*/
#include "dec2base.h"
void ddec2basea(double* in,int size,int base,int n,char* out)
diff --git a/src/c/elementaryFunctions/radix_conversions/dec2base/ddec2bases.c b/src/c/elementaryFunctions/radix_conversions/dec2base/ddec2bases.c
index 9dc7c82..dae7bdc 100644
--- a/src/c/elementaryFunctions/radix_conversions/dec2base/ddec2bases.c
+++ b/src/c/elementaryFunctions/radix_conversions/dec2base/ddec2bases.c
@@ -1,3 +1,14 @@
+/* Copyright (C) 2017 - IIT Bombay - FOSSEE
+
+ 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
+ Organization: FOSSEE, IIT Bombay
+ Author: Shamik Guha
+ Email: toolbox@scilab.in
+*/
#include <string.h>
#include <math.h>
#include "dec2base.h"
diff --git a/src/c/elementaryFunctions/radix_conversions/dec2base/sdec2basea.c b/src/c/elementaryFunctions/radix_conversions/dec2base/sdec2basea.c
index 51e1238..dc4d859 100644
--- a/src/c/elementaryFunctions/radix_conversions/dec2base/sdec2basea.c
+++ b/src/c/elementaryFunctions/radix_conversions/dec2base/sdec2basea.c
@@ -1,3 +1,14 @@
+/* Copyright (C) 2017 - IIT Bombay - FOSSEE
+
+ 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
+ Organization: FOSSEE, IIT Bombay
+ Author: Shamik Guha
+ Email: toolbox@scilab.in
+*/
#include "dec2base.h"
void sdec2basea(float* in,int size,int base,int n,char* out)
diff --git a/src/c/elementaryFunctions/radix_conversions/dec2base/sdec2bases.c b/src/c/elementaryFunctions/radix_conversions/dec2base/sdec2bases.c
index 9abe216..a627c05 100644
--- a/src/c/elementaryFunctions/radix_conversions/dec2base/sdec2bases.c
+++ b/src/c/elementaryFunctions/radix_conversions/dec2base/sdec2bases.c
@@ -1,3 +1,14 @@
+/* Copyright (C) 2017 - IIT Bombay - FOSSEE
+
+ 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
+ Organization: FOSSEE, IIT Bombay
+ Author: Shamik Guha
+ Email: toolbox@scilab.in
+*/
#include <string.h>
#include <math.h>
#include "dec2base.h"
diff --git a/src/c/elementaryFunctions/radix_conversions/dec2bin/ddec2bina.c b/src/c/elementaryFunctions/radix_conversions/dec2bin/ddec2bina.c
index e064875..c69b782 100644
--- a/src/c/elementaryFunctions/radix_conversions/dec2bin/ddec2bina.c
+++ b/src/c/elementaryFunctions/radix_conversions/dec2bin/ddec2bina.c
@@ -1,3 +1,14 @@
+/* Copyright (C) 2017 - IIT Bombay - FOSSEE
+
+ 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
+ Organization: FOSSEE, IIT Bombay
+ Author: Shamik Guha
+ Email: toolbox@scilab.in
+*/
#include "dec2bin.h"
void ddec2bina(double* in,int size,int n,double* out)
diff --git a/src/c/elementaryFunctions/radix_conversions/dec2bin/ddec2bins.c b/src/c/elementaryFunctions/radix_conversions/dec2bin/ddec2bins.c
index c97fc42..f5db16c 100644
--- a/src/c/elementaryFunctions/radix_conversions/dec2bin/ddec2bins.c
+++ b/src/c/elementaryFunctions/radix_conversions/dec2bin/ddec2bins.c
@@ -1,3 +1,14 @@
+/* Copyright (C) 2017 - IIT Bombay - FOSSEE
+
+ 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
+ Organization: FOSSEE, IIT Bombay
+ Author: Shamik Guha
+ Email: toolbox@scilab.in
+*/
#include <string.h>
#include "dec2bin.h"
#include <stdio.h>
diff --git a/src/c/elementaryFunctions/radix_conversions/dec2bin/i16dec2bina.c b/src/c/elementaryFunctions/radix_conversions/dec2bin/i16dec2bina.c
index 1fa251c..93d1fdd 100644
--- a/src/c/elementaryFunctions/radix_conversions/dec2bin/i16dec2bina.c
+++ b/src/c/elementaryFunctions/radix_conversions/dec2bin/i16dec2bina.c
@@ -1,3 +1,14 @@
+/* Copyright (C) 2017 - IIT Bombay - FOSSEE
+
+ 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
+ Organization: FOSSEE, IIT Bombay
+ Author: Shamik Guha
+ Email: toolbox@scilab.in
+*/
#include "dec2bin.h"
void i16dec2bina(int16* in,int size,int n,int16* out)
diff --git a/src/c/elementaryFunctions/radix_conversions/dec2bin/i16dec2bins.c b/src/c/elementaryFunctions/radix_conversions/dec2bin/i16dec2bins.c
index 0b06aef..5df0fe8 100644
--- a/src/c/elementaryFunctions/radix_conversions/dec2bin/i16dec2bins.c
+++ b/src/c/elementaryFunctions/radix_conversions/dec2bin/i16dec2bins.c
@@ -1,3 +1,14 @@
+/* Copyright (C) 2017 - IIT Bombay - FOSSEE
+
+ 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
+ Organization: FOSSEE, IIT Bombay
+ Author: Shamik Guha
+ Email: toolbox@scilab.in
+*/
#include <string.h>
#include "dec2bin.h"
#include <stdio.h>
diff --git a/src/c/elementaryFunctions/radix_conversions/dec2bin/i8dec2bina.c b/src/c/elementaryFunctions/radix_conversions/dec2bin/i8dec2bina.c
index 2297ae9..90062f9 100644
--- a/src/c/elementaryFunctions/radix_conversions/dec2bin/i8dec2bina.c
+++ b/src/c/elementaryFunctions/radix_conversions/dec2bin/i8dec2bina.c
@@ -1,3 +1,14 @@
+/* Copyright (C) 2017 - IIT Bombay - FOSSEE
+
+ 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
+ Organization: FOSSEE, IIT Bombay
+ Author: Shamik Guha
+ Email: toolbox@scilab.in
+*/
#include "dec2bin.h"
void i8dec2bina(int8* in,int size,int n,int8* out)
diff --git a/src/c/elementaryFunctions/radix_conversions/dec2bin/i8dec2bins.c b/src/c/elementaryFunctions/radix_conversions/dec2bin/i8dec2bins.c
index 4f4024c..ea68985 100644
--- a/src/c/elementaryFunctions/radix_conversions/dec2bin/i8dec2bins.c
+++ b/src/c/elementaryFunctions/radix_conversions/dec2bin/i8dec2bins.c
@@ -1,3 +1,14 @@
+/* Copyright (C) 2017 - IIT Bombay - FOSSEE
+
+ 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
+ Organization: FOSSEE, IIT Bombay
+ Author: Shamik Guha
+ Email: toolbox@scilab.in
+*/
#include <string.h>
#include "dec2bin.h"
#include <stdio.h>
diff --git a/src/c/elementaryFunctions/radix_conversions/dec2bin/u16dec2bina.c b/src/c/elementaryFunctions/radix_conversions/dec2bin/u16dec2bina.c
index 153ce86..165485e 100644
--- a/src/c/elementaryFunctions/radix_conversions/dec2bin/u16dec2bina.c
+++ b/src/c/elementaryFunctions/radix_conversions/dec2bin/u16dec2bina.c
@@ -1,3 +1,14 @@
+/* Copyright (C) 2017 - IIT Bombay - FOSSEE
+
+ 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
+ Organization: FOSSEE, IIT Bombay
+ Author: Shamik Guha
+ Email: toolbox@scilab.in
+*/
#include "dec2bin.h"
void u16dec2bina(uint16* in,int size,int n,uint16* out)
diff --git a/src/c/elementaryFunctions/radix_conversions/dec2bin/u16dec2bins.c b/src/c/elementaryFunctions/radix_conversions/dec2bin/u16dec2bins.c
index 1ade60f..ea99889 100644
--- a/src/c/elementaryFunctions/radix_conversions/dec2bin/u16dec2bins.c
+++ b/src/c/elementaryFunctions/radix_conversions/dec2bin/u16dec2bins.c
@@ -1,3 +1,14 @@
+/* Copyright (C) 2017 - IIT Bombay - FOSSEE
+
+ 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
+ Organization: FOSSEE, IIT Bombay
+ Author: Shamik Guha
+ Email: toolbox@scilab.in
+*/
#include <string.h>
#include "dec2bin.h"
#include <stdio.h>
diff --git a/src/c/elementaryFunctions/radix_conversions/dec2bin/u8dec2bina.c b/src/c/elementaryFunctions/radix_conversions/dec2bin/u8dec2bina.c
index 87fc918..4ebdc63 100644
--- a/src/c/elementaryFunctions/radix_conversions/dec2bin/u8dec2bina.c
+++ b/src/c/elementaryFunctions/radix_conversions/dec2bin/u8dec2bina.c
@@ -1,3 +1,14 @@
+/* Copyright (C) 2017 - IIT Bombay - FOSSEE
+
+ 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
+ Organization: FOSSEE, IIT Bombay
+ Author: Shamik Guha
+ Email: toolbox@scilab.in
+*/
#include "dec2bin.h"
void u8dec2bina(uint8* in,int size,int n,uint8* out)
diff --git a/src/c/elementaryFunctions/radix_conversions/dec2bin/u8dec2bins.c b/src/c/elementaryFunctions/radix_conversions/dec2bin/u8dec2bins.c
index 971f6c2..af56d92 100644
--- a/src/c/elementaryFunctions/radix_conversions/dec2bin/u8dec2bins.c
+++ b/src/c/elementaryFunctions/radix_conversions/dec2bin/u8dec2bins.c
@@ -1,3 +1,14 @@
+/* Copyright (C) 2017 - IIT Bombay - FOSSEE
+
+ 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
+ Organization: FOSSEE, IIT Bombay
+ Author: Shamik Guha
+ Email: toolbox@scilab.in
+*/
#include <string.h>
#include "dec2bin.h"
#include <stdio.h>
diff --git a/src/c/elementaryFunctions/radix_conversions/dec2hex/ddec2hexa.c b/src/c/elementaryFunctions/radix_conversions/dec2hex/ddec2hexa.c
index c3187d2..f2fda27 100644
--- a/src/c/elementaryFunctions/radix_conversions/dec2hex/ddec2hexa.c
+++ b/src/c/elementaryFunctions/radix_conversions/dec2hex/ddec2hexa.c
@@ -1,3 +1,14 @@
+/* Copyright (C) 2017 - IIT Bombay - FOSSEE
+
+ 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
+ Organization: FOSSEE, IIT Bombay
+ Author: Shamik Guha
+ Email: toolbox@scilab.in
+*/
#include "dec2hex.h"
void ddec2hexa(double* in,int size,char* out)
diff --git a/src/c/elementaryFunctions/radix_conversions/dec2hex/ddec2hexs.c b/src/c/elementaryFunctions/radix_conversions/dec2hex/ddec2hexs.c
index 0adafef..bcbb266 100644
--- a/src/c/elementaryFunctions/radix_conversions/dec2hex/ddec2hexs.c
+++ b/src/c/elementaryFunctions/radix_conversions/dec2hex/ddec2hexs.c
@@ -1,3 +1,14 @@
+/* Copyright (C) 2017 - IIT Bombay - FOSSEE
+
+ 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
+ Organization: FOSSEE, IIT Bombay
+ Author: Shamik Guha
+ Email: toolbox@scilab.in
+*/
#include <string.h>
#include <math.h>
#include "dec2hex.h"
diff --git a/src/c/elementaryFunctions/radix_conversions/dec2hex/i16dec2hexa.c b/src/c/elementaryFunctions/radix_conversions/dec2hex/i16dec2hexa.c
index f66df8b..e00eec4 100644
--- a/src/c/elementaryFunctions/radix_conversions/dec2hex/i16dec2hexa.c
+++ b/src/c/elementaryFunctions/radix_conversions/dec2hex/i16dec2hexa.c
@@ -1,3 +1,14 @@
+/* Copyright (C) 2017 - IIT Bombay - FOSSEE
+
+ 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
+ Organization: FOSSEE, IIT Bombay
+ Author: Shamik Guha
+ Email: toolbox@scilab.in
+*/
#include "dec2hex.h"
void i16dec2hexa(int16* in,int size,char* out)
diff --git a/src/c/elementaryFunctions/radix_conversions/dec2hex/i16dec2hexs.c b/src/c/elementaryFunctions/radix_conversions/dec2hex/i16dec2hexs.c
index f556141..f4a15ee 100644
--- a/src/c/elementaryFunctions/radix_conversions/dec2hex/i16dec2hexs.c
+++ b/src/c/elementaryFunctions/radix_conversions/dec2hex/i16dec2hexs.c
@@ -1,3 +1,14 @@
+/* Copyright (C) 2017 - IIT Bombay - FOSSEE
+
+ 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
+ Organization: FOSSEE, IIT Bombay
+ Author: Shamik Guha
+ Email: toolbox@scilab.in
+*/
#include <string.h>
#include <math.h>
#include "dec2hex.h"
diff --git a/src/c/elementaryFunctions/radix_conversions/dec2hex/i8dec2hexa.c b/src/c/elementaryFunctions/radix_conversions/dec2hex/i8dec2hexa.c
index a6c9d94..be659d4 100644
--- a/src/c/elementaryFunctions/radix_conversions/dec2hex/i8dec2hexa.c
+++ b/src/c/elementaryFunctions/radix_conversions/dec2hex/i8dec2hexa.c
@@ -1,3 +1,14 @@
+/* Copyright (C) 2017 - IIT Bombay - FOSSEE
+
+ 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
+ Organization: FOSSEE, IIT Bombay
+ Author: Shamik Guha
+ Email: toolbox@scilab.in
+*/
#include "dec2hex.h"
void i8dec2hexa(int8* in,int size,char* out)
diff --git a/src/c/elementaryFunctions/radix_conversions/dec2hex/i8dec2hexs.c b/src/c/elementaryFunctions/radix_conversions/dec2hex/i8dec2hexs.c
index a5a6772..290335f 100644
--- a/src/c/elementaryFunctions/radix_conversions/dec2hex/i8dec2hexs.c
+++ b/src/c/elementaryFunctions/radix_conversions/dec2hex/i8dec2hexs.c
@@ -1,3 +1,14 @@
+/* Copyright (C) 2017 - IIT Bombay - FOSSEE
+
+ 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
+ Organization: FOSSEE, IIT Bombay
+ Author: Shamik Guha
+ Email: toolbox@scilab.in
+*/
#include <string.h>
#include <math.h>
#include "dec2hex.h"
diff --git a/src/c/elementaryFunctions/radix_conversions/dec2hex/u16dec2hexa.c b/src/c/elementaryFunctions/radix_conversions/dec2hex/u16dec2hexa.c
index 52e1ae8..abfe5aa 100644
--- a/src/c/elementaryFunctions/radix_conversions/dec2hex/u16dec2hexa.c
+++ b/src/c/elementaryFunctions/radix_conversions/dec2hex/u16dec2hexa.c
@@ -1,3 +1,14 @@
+/* Copyright (C) 2017 - IIT Bombay - FOSSEE
+
+ 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
+ Organization: FOSSEE, IIT Bombay
+ Author: Shamik Guha
+ Email: toolbox@scilab.in
+*/
#include "dec2hex.h"
void u16dec2hexa(uint16* in,int size,char* out)
diff --git a/src/c/elementaryFunctions/radix_conversions/dec2hex/u16dec2hexs.c b/src/c/elementaryFunctions/radix_conversions/dec2hex/u16dec2hexs.c
index 1e942e6..b7c3c98 100644
--- a/src/c/elementaryFunctions/radix_conversions/dec2hex/u16dec2hexs.c
+++ b/src/c/elementaryFunctions/radix_conversions/dec2hex/u16dec2hexs.c
@@ -1,3 +1,14 @@
+/* Copyright (C) 2017 - IIT Bombay - FOSSEE
+
+ 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
+ Organization: FOSSEE, IIT Bombay
+ Author: Shamik Guha
+ Email: toolbox@scilab.in
+*/
#include <string.h>
#include <math.h>
#include "dec2hex.h"
diff --git a/src/c/elementaryFunctions/radix_conversions/dec2hex/u8dec2hexa.c b/src/c/elementaryFunctions/radix_conversions/dec2hex/u8dec2hexa.c
index 0ac48a0..8fe0526 100644
--- a/src/c/elementaryFunctions/radix_conversions/dec2hex/u8dec2hexa.c
+++ b/src/c/elementaryFunctions/radix_conversions/dec2hex/u8dec2hexa.c
@@ -1,3 +1,14 @@
+/* Copyright (C) 2017 - IIT Bombay - FOSSEE
+
+ 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
+ Organization: FOSSEE, IIT Bombay
+ Author: Shamik Guha
+ Email: toolbox@scilab.in
+*/
#include "dec2hex.h"
void u8dec2hexa(uint8* in,int size,char* out)
diff --git a/src/c/elementaryFunctions/radix_conversions/dec2hex/u8dec2hexs.c b/src/c/elementaryFunctions/radix_conversions/dec2hex/u8dec2hexs.c
index 154c23f..acf236e 100644
--- a/src/c/elementaryFunctions/radix_conversions/dec2hex/u8dec2hexs.c
+++ b/src/c/elementaryFunctions/radix_conversions/dec2hex/u8dec2hexs.c
@@ -1,3 +1,14 @@
+/* Copyright (C) 2017 - IIT Bombay - FOSSEE
+
+ 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
+ Organization: FOSSEE, IIT Bombay
+ Author: Shamik Guha
+ Email: toolbox@scilab.in
+*/
#include <string.h>
#include <math.h>
#include "dec2hex.h"
diff --git a/src/c/elementaryFunctions/radix_conversions/dec2oct/ddec2octa.c b/src/c/elementaryFunctions/radix_conversions/dec2oct/ddec2octa.c
index 03fc2dc..f6cbcfe 100644
--- a/src/c/elementaryFunctions/radix_conversions/dec2oct/ddec2octa.c
+++ b/src/c/elementaryFunctions/radix_conversions/dec2oct/ddec2octa.c
@@ -1,3 +1,14 @@
+/* Copyright (C) 2017 - IIT Bombay - FOSSEE
+
+ 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
+ Organization: FOSSEE, IIT Bombay
+ Author: Shamik Guha
+ Email: toolbox@scilab.in
+*/
#include "dec2oct.h"
void ddec2octa(double* in,int size,double* out)
diff --git a/src/c/elementaryFunctions/radix_conversions/dec2oct/ddec2octs.c b/src/c/elementaryFunctions/radix_conversions/dec2oct/ddec2octs.c
index d06da30..702f186 100644
--- a/src/c/elementaryFunctions/radix_conversions/dec2oct/ddec2octs.c
+++ b/src/c/elementaryFunctions/radix_conversions/dec2oct/ddec2octs.c
@@ -1,3 +1,14 @@
+/* Copyright (C) 2017 - IIT Bombay - FOSSEE
+
+ 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
+ Organization: FOSSEE, IIT Bombay
+ Author: Shamik Guha
+ Email: toolbox@scilab.in
+*/
#include <string.h>
#include <math.h>
#include "dec2oct.h"
diff --git a/src/c/elementaryFunctions/radix_conversions/dec2oct/i16dec2octa.c b/src/c/elementaryFunctions/radix_conversions/dec2oct/i16dec2octa.c
index 882b00b..fec152c 100644
--- a/src/c/elementaryFunctions/radix_conversions/dec2oct/i16dec2octa.c
+++ b/src/c/elementaryFunctions/radix_conversions/dec2oct/i16dec2octa.c
@@ -1,3 +1,14 @@
+/* Copyright (C) 2017 - IIT Bombay - FOSSEE
+
+ 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
+ Organization: FOSSEE, IIT Bombay
+ Author: Shamik Guha
+ Email: toolbox@scilab.in
+*/
#include "dec2oct.h"
void i16dec2octa(int16* in,int size,int16* out)
diff --git a/src/c/elementaryFunctions/radix_conversions/dec2oct/i16dec2octs.c b/src/c/elementaryFunctions/radix_conversions/dec2oct/i16dec2octs.c
index cb08845..340958f 100644
--- a/src/c/elementaryFunctions/radix_conversions/dec2oct/i16dec2octs.c
+++ b/src/c/elementaryFunctions/radix_conversions/dec2oct/i16dec2octs.c
@@ -1,3 +1,14 @@
+/* Copyright (C) 2017 - IIT Bombay - FOSSEE
+
+ 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
+ Organization: FOSSEE, IIT Bombay
+ Author: Shamik Guha
+ Email: toolbox@scilab.in
+*/
#include <string.h>
#include <math.h>
#include "dec2oct.h"
diff --git a/src/c/elementaryFunctions/radix_conversions/dec2oct/i8dec2octa.c b/src/c/elementaryFunctions/radix_conversions/dec2oct/i8dec2octa.c
index 221f486..0c96f01 100644
--- a/src/c/elementaryFunctions/radix_conversions/dec2oct/i8dec2octa.c
+++ b/src/c/elementaryFunctions/radix_conversions/dec2oct/i8dec2octa.c
@@ -1,3 +1,14 @@
+/* Copyright (C) 2017 - IIT Bombay - FOSSEE
+
+ 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
+ Organization: FOSSEE, IIT Bombay
+ Author: Shamik Guha
+ Email: toolbox@scilab.in
+*/
#include "dec2oct.h"
void i8dec2octa(int8* in,int size,int8* out)
diff --git a/src/c/elementaryFunctions/radix_conversions/dec2oct/i8dec2octs.c b/src/c/elementaryFunctions/radix_conversions/dec2oct/i8dec2octs.c
index 30ae5b0..0a35f94 100644
--- a/src/c/elementaryFunctions/radix_conversions/dec2oct/i8dec2octs.c
+++ b/src/c/elementaryFunctions/radix_conversions/dec2oct/i8dec2octs.c
@@ -1,3 +1,14 @@
+/* Copyright (C) 2017 - IIT Bombay - FOSSEE
+
+ 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
+ Organization: FOSSEE, IIT Bombay
+ Author: Shamik Guha
+ Email: toolbox@scilab.in
+*/
#include <string.h>
#include <math.h>
#include "dec2oct.h"
diff --git a/src/c/elementaryFunctions/radix_conversions/dec2oct/u16dec2octa.c b/src/c/elementaryFunctions/radix_conversions/dec2oct/u16dec2octa.c
index cc0d543..7a3e60e 100644
--- a/src/c/elementaryFunctions/radix_conversions/dec2oct/u16dec2octa.c
+++ b/src/c/elementaryFunctions/radix_conversions/dec2oct/u16dec2octa.c
@@ -1,3 +1,14 @@
+/* Copyright (C) 2017 - IIT Bombay - FOSSEE
+
+ 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
+ Organization: FOSSEE, IIT Bombay
+ Author: Shamik Guha
+ Email: toolbox@scilab.in
+*/
#include "dec2oct.h"
void u16dec2octa(uint16* in,int size,uint16* out)
diff --git a/src/c/elementaryFunctions/radix_conversions/dec2oct/u16dec2octs.c b/src/c/elementaryFunctions/radix_conversions/dec2oct/u16dec2octs.c
index 4b0bd59..99936b4 100644
--- a/src/c/elementaryFunctions/radix_conversions/dec2oct/u16dec2octs.c
+++ b/src/c/elementaryFunctions/radix_conversions/dec2oct/u16dec2octs.c
@@ -1,3 +1,14 @@
+/* Copyright (C) 2017 - IIT Bombay - FOSSEE
+
+ 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
+ Organization: FOSSEE, IIT Bombay
+ Author: Shamik Guha
+ Email: toolbox@scilab.in
+*/
#include <string.h>
#include <math.h>
#include "dec2oct.h"
diff --git a/src/c/elementaryFunctions/radix_conversions/dec2oct/u8dec2octa.c b/src/c/elementaryFunctions/radix_conversions/dec2oct/u8dec2octa.c
index c187077..1a4e026 100644
--- a/src/c/elementaryFunctions/radix_conversions/dec2oct/u8dec2octa.c
+++ b/src/c/elementaryFunctions/radix_conversions/dec2oct/u8dec2octa.c
@@ -1,3 +1,14 @@
+/* Copyright (C) 2017 - IIT Bombay - FOSSEE
+
+ 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
+ Organization: FOSSEE, IIT Bombay
+ Author: Shamik Guha
+ Email: toolbox@scilab.in
+*/
#include "dec2oct.h"
void u8dec2octa(uint8* in,int size,uint8* out)
diff --git a/src/c/elementaryFunctions/radix_conversions/dec2oct/u8dec2octs.c b/src/c/elementaryFunctions/radix_conversions/dec2oct/u8dec2octs.c
index 9348630..fbfc104 100644
--- a/src/c/elementaryFunctions/radix_conversions/dec2oct/u8dec2octs.c
+++ b/src/c/elementaryFunctions/radix_conversions/dec2oct/u8dec2octs.c
@@ -1,3 +1,14 @@
+/* Copyright (C) 2017 - IIT Bombay - FOSSEE
+
+ 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
+ Organization: FOSSEE, IIT Bombay
+ Author: Shamik Guha
+ Email: toolbox@scilab.in
+*/
#include <string.h>
#include <math.h>
#include "dec2oct.h"
diff --git a/src/c/elementaryFunctions/radix_conversions/hex2dec/dhex2decs.c b/src/c/elementaryFunctions/radix_conversions/hex2dec/dhex2decs.c
index cfe0594..4297573 100644
--- a/src/c/elementaryFunctions/radix_conversions/hex2dec/dhex2decs.c
+++ b/src/c/elementaryFunctions/radix_conversions/hex2dec/dhex2decs.c
@@ -1,3 +1,14 @@
+/* Copyright (C) 2017 - IIT Bombay - FOSSEE
+
+ 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
+ Organization: FOSSEE, IIT Bombay
+ Author: Shamik Guha
+ Email: toolbox@scilab.in
+*/
#include <string.h>
#include "hex2dec.h"
#include <stdio.h>
diff --git a/src/c/elementaryFunctions/radix_conversions/hex2dec/ghex2decs.c b/src/c/elementaryFunctions/radix_conversions/hex2dec/ghex2decs.c
index c5b68db..8722df1 100644
--- a/src/c/elementaryFunctions/radix_conversions/hex2dec/ghex2decs.c
+++ b/src/c/elementaryFunctions/radix_conversions/hex2dec/ghex2decs.c
@@ -1,3 +1,14 @@
+/* Copyright (C) 2017 - IIT Bombay - FOSSEE
+
+ 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
+ Organization: FOSSEE, IIT Bombay
+ Author: Shamik Guha
+ Email: toolbox@scilab.in
+*/
#include <string.h>
#include "hex2dec.h"
#include <stdio.h>
diff --git a/src/c/elementaryFunctions/radix_conversions/oct2dec/doct2deca.c b/src/c/elementaryFunctions/radix_conversions/oct2dec/doct2deca.c
index 6bb5d00..e3619eb 100644
--- a/src/c/elementaryFunctions/radix_conversions/oct2dec/doct2deca.c
+++ b/src/c/elementaryFunctions/radix_conversions/oct2dec/doct2deca.c
@@ -1,3 +1,14 @@
+/* Copyright (C) 2017 - IIT Bombay - FOSSEE
+
+ 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
+ Organization: FOSSEE, IIT Bombay
+ Author: Shamik Guha
+ Email: toolbox@scilab.in
+*/
#include "oct2dec.h"
void doct2deca(double* in,int size,double* out)
diff --git a/src/c/elementaryFunctions/radix_conversions/oct2dec/doct2decs.c b/src/c/elementaryFunctions/radix_conversions/oct2dec/doct2decs.c
index 8f9f0b6..b126c61 100644
--- a/src/c/elementaryFunctions/radix_conversions/oct2dec/doct2decs.c
+++ b/src/c/elementaryFunctions/radix_conversions/oct2dec/doct2decs.c
@@ -1,3 +1,14 @@
+/* Copyright (C) 2017 - IIT Bombay - FOSSEE
+
+ 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
+ Organization: FOSSEE, IIT Bombay
+ Author: Shamik Guha
+ Email: toolbox@scilab.in
+*/
#include <string.h>
#include "oct2dec.h"
#include <stdio.h>
diff --git a/src/c/elementaryFunctions/radix_conversions/oct2dec/i16oct2deca.c b/src/c/elementaryFunctions/radix_conversions/oct2dec/i16oct2deca.c
index 1ab843f..9db3e2e 100644
--- a/src/c/elementaryFunctions/radix_conversions/oct2dec/i16oct2deca.c
+++ b/src/c/elementaryFunctions/radix_conversions/oct2dec/i16oct2deca.c
@@ -1,3 +1,14 @@
+/* Copyright (C) 2017 - IIT Bombay - FOSSEE
+
+ 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
+ Organization: FOSSEE, IIT Bombay
+ Author: Shamik Guha
+ Email: toolbox@scilab.in
+*/
#include "oct2dec.h"
void i16oct2deca(int16* in,int size,int16* out)
diff --git a/src/c/elementaryFunctions/radix_conversions/oct2dec/i16oct2decs.c b/src/c/elementaryFunctions/radix_conversions/oct2dec/i16oct2decs.c
index ea09285..928c3a2 100644
--- a/src/c/elementaryFunctions/radix_conversions/oct2dec/i16oct2decs.c
+++ b/src/c/elementaryFunctions/radix_conversions/oct2dec/i16oct2decs.c
@@ -1,3 +1,14 @@
+/* Copyright (C) 2017 - IIT Bombay - FOSSEE
+
+ 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
+ Organization: FOSSEE, IIT Bombay
+ Author: Shamik Guha
+ Email: toolbox@scilab.in
+*/
#include <string.h>
#include "oct2dec.h"
#include <stdio.h>
diff --git a/src/c/elementaryFunctions/radix_conversions/oct2dec/i8oct2deca.c b/src/c/elementaryFunctions/radix_conversions/oct2dec/i8oct2deca.c
index 133806c..de57a0e 100644
--- a/src/c/elementaryFunctions/radix_conversions/oct2dec/i8oct2deca.c
+++ b/src/c/elementaryFunctions/radix_conversions/oct2dec/i8oct2deca.c
@@ -1,3 +1,14 @@
+/* Copyright (C) 2017 - IIT Bombay - FOSSEE
+
+ 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
+ Organization: FOSSEE, IIT Bombay
+ Author: Shamik Guha
+ Email: toolbox@scilab.in
+*/
#include "oct2dec.h"
void i8oct2deca(int8* in,int size,int8* out)
diff --git a/src/c/elementaryFunctions/radix_conversions/oct2dec/i8oct2decs.c b/src/c/elementaryFunctions/radix_conversions/oct2dec/i8oct2decs.c
index 1886739..b95a042 100644
--- a/src/c/elementaryFunctions/radix_conversions/oct2dec/i8oct2decs.c
+++ b/src/c/elementaryFunctions/radix_conversions/oct2dec/i8oct2decs.c
@@ -1,3 +1,14 @@
+/* Copyright (C) 2017 - IIT Bombay - FOSSEE
+
+ 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
+ Organization: FOSSEE, IIT Bombay
+ Author: Shamik Guha
+ Email: toolbox@scilab.in
+*/
#include <string.h>
#include "oct2dec.h"
#include <stdio.h>
diff --git a/src/c/elementaryFunctions/radix_conversions/oct2dec/u16oct2deca.c b/src/c/elementaryFunctions/radix_conversions/oct2dec/u16oct2deca.c
index cec3a21..7778ee9 100644
--- a/src/c/elementaryFunctions/radix_conversions/oct2dec/u16oct2deca.c
+++ b/src/c/elementaryFunctions/radix_conversions/oct2dec/u16oct2deca.c
@@ -1,3 +1,14 @@
+/* Copyright (C) 2017 - IIT Bombay - FOSSEE
+
+ 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
+ Organization: FOSSEE, IIT Bombay
+ Author: Shamik Guha
+ Email: toolbox@scilab.in
+*/
#include "oct2dec.h"
void u16oct2deca(uint16* in,int size,uint16* out)
diff --git a/src/c/elementaryFunctions/radix_conversions/oct2dec/u16oct2decs.c b/src/c/elementaryFunctions/radix_conversions/oct2dec/u16oct2decs.c
index 43dd0ac..4b30443 100644
--- a/src/c/elementaryFunctions/radix_conversions/oct2dec/u16oct2decs.c
+++ b/src/c/elementaryFunctions/radix_conversions/oct2dec/u16oct2decs.c
@@ -1,3 +1,14 @@
+/* Copyright (C) 2017 - IIT Bombay - FOSSEE
+
+ 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
+ Organization: FOSSEE, IIT Bombay
+ Author: Shamik Guha
+ Email: toolbox@scilab.in
+*/
#include <string.h>
#include "oct2dec.h"
#include <stdio.h>
diff --git a/src/c/elementaryFunctions/radix_conversions/oct2dec/u8oct2deca.c b/src/c/elementaryFunctions/radix_conversions/oct2dec/u8oct2deca.c
index 3b35658..d188020 100644
--- a/src/c/elementaryFunctions/radix_conversions/oct2dec/u8oct2deca.c
+++ b/src/c/elementaryFunctions/radix_conversions/oct2dec/u8oct2deca.c
@@ -1,3 +1,14 @@
+/* Copyright (C) 2017 - IIT Bombay - FOSSEE
+
+ 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
+ Organization: FOSSEE, IIT Bombay
+ Author: Shamik Guha
+ Email: toolbox@scilab.in
+*/
#include "oct2dec.h"
void u8oct2deca(uint8* in,int size,uint8* out)
diff --git a/src/c/elementaryFunctions/radix_conversions/oct2dec/u8oct2decs.c b/src/c/elementaryFunctions/radix_conversions/oct2dec/u8oct2decs.c
index c854bc2..f804f7f 100644
--- a/src/c/elementaryFunctions/radix_conversions/oct2dec/u8oct2decs.c
+++ b/src/c/elementaryFunctions/radix_conversions/oct2dec/u8oct2decs.c
@@ -1,3 +1,14 @@
+/* Copyright (C) 2017 - IIT Bombay - FOSSEE
+
+ 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
+ Organization: FOSSEE, IIT Bombay
+ Author: Shamik Guha
+ Email: toolbox@scilab.in
+*/
#include <string.h>
#include "oct2dec.h"
#include <stdio.h>
diff --git a/src/c/elementaryFunctions/special_functions/gamma/dgammas.c b/src/c/elementaryFunctions/special_functions/gamma/dgammas.c
deleted file mode 100644
index c466f43..0000000
--- a/src/c/elementaryFunctions/special_functions/gamma/dgammas.c
+++ /dev/null
@@ -1,52 +0,0 @@
-#include <stdio.h>
-#include <stdlib.h>
-#include <math.h>
-#include <gsl/gsl_sf_gamma.h>
-#ifndef M_PI
-#define M_PI 3.14159265358979323846
-#endif
-
-/* very simple approximation */
-double st_gamma(double x)
-{
- return sqrt(2.0*M_PI/x)*pow(x/M_E, x);
-}
-
-#define A 12
-double sp_gamma(double z)
-{
- const int a = A;
- static double c_space[A];
- static double *c = NULL;
- int k;
- double accm;
-
- if ( c == NULL ) {
- double k1_factrl = 1.0; /* (k - 1)!*(-1)^k with 0!==1*/
- c = c_space;
- c[0] = sqrt(2.0*M_PI);
- for(k=1; k < a; k++) {
- c[k] = exp(a-k) * pow(a-k, k-0.5) / k1_factrl;
- k1_factrl *= -k;
- }
- }
- accm = c[0];
- for(k=1; k < a; k++) {
- accm += c[k] / ( z + k );
- }
- accm *= exp(-(z+a)) * pow(z+a, z+0.5); /* Gamma(z+1) */
- return accm/z;
-}
-
-int main()
-{
- double x;
-
-
- printf("%15s%15s%15s%15s\n", "Stirling", "Spouge", "GSL", "libm");
- for(x=1.0; x <= 10.0; x+=1.0) {
- printf("%15.8lf%15.8lf%15.8lf%15.8lf\n", st_gamma(x/3.0), sp_gamma(x/3.0),
- gsl_sf_gamma(x/3.0), tgamma(x/3.0));
- }
- return 0;
-}