diff options
author | siddhu8990 | 2017-04-24 14:08:37 +0530 |
---|---|---|
committer | siddhu8990 | 2017-04-24 14:08:37 +0530 |
commit | 472b2e7ebbd2d8b3ecd00b228128aa8a0bd3f920 (patch) | |
tree | 506e85e6c959148c052747d61ffd29d98fa058bf /2.3-1/src/c/elementaryFunctions | |
parent | b9cfdca438347fe4d28f7caff3cb7b382e455d3a (diff) | |
download | Scilab2C-472b2e7ebbd2d8b3ecd00b228128aa8a0bd3f920.tar.gz Scilab2C-472b2e7ebbd2d8b3ecd00b228128aa8a0bd3f920.tar.bz2 Scilab2C-472b2e7ebbd2d8b3ecd00b228128aa8a0bd3f920.zip |
Fixed float.h issue. OpenCV with built libraries working for linux x64
Diffstat (limited to '2.3-1/src/c/elementaryFunctions')
84 files changed, 876 insertions, 170 deletions
diff --git a/2.3-1/src/c/elementaryFunctions/Trigonometry/csc/zcscs.c b/2.3-1/src/c/elementaryFunctions/Trigonometry/csc/zcscs.c index c0b692dc..bbb15266 100644 --- a/2.3-1/src/c/elementaryFunctions/Trigonometry/csc/zcscs.c +++ b/2.3-1/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/2.3-1/src/c/elementaryFunctions/discrete_mathematics/factor/dfactors.c b/2.3-1/src/c/elementaryFunctions/discrete_mathematics/factor/dfactors.c index 210670bb..98019431 100644 --- a/2.3-1/src/c/elementaryFunctions/discrete_mathematics/factor/dfactors.c +++ b/2.3-1/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/2.3-1/src/c/elementaryFunctions/discrete_mathematics/factor/sfactors.c b/2.3-1/src/c/elementaryFunctions/discrete_mathematics/factor/sfactors.c index 9a37140e..2e5ba478 100644 --- a/2.3-1/src/c/elementaryFunctions/discrete_mathematics/factor/sfactors.c +++ b/2.3-1/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/2.3-1/src/c/elementaryFunctions/discrete_mathematics/factorial/dfactoriala.c b/2.3-1/src/c/elementaryFunctions/discrete_mathematics/factorial/dfactoriala.c index de06aaa2..68a118ba 100644 --- a/2.3-1/src/c/elementaryFunctions/discrete_mathematics/factorial/dfactoriala.c +++ b/2.3-1/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/2.3-1/src/c/elementaryFunctions/discrete_mathematics/factorial/dfactorials.c b/2.3-1/src/c/elementaryFunctions/discrete_mathematics/factorial/dfactorials.c index 28c787e9..354eb6a8 100644 --- a/2.3-1/src/c/elementaryFunctions/discrete_mathematics/factorial/dfactorials.c +++ b/2.3-1/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/2.3-1/src/c/elementaryFunctions/discrete_mathematics/factorial/sfactoriala.c b/2.3-1/src/c/elementaryFunctions/discrete_mathematics/factorial/sfactoriala.c index e7d820b2..14f46d84 100644 --- a/2.3-1/src/c/elementaryFunctions/discrete_mathematics/factorial/sfactoriala.c +++ b/2.3-1/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/2.3-1/src/c/elementaryFunctions/discrete_mathematics/factorial/sfactorials.c b/2.3-1/src/c/elementaryFunctions/discrete_mathematics/factorial/sfactorials.c index b660702d..e4f1017b 100644 --- a/2.3-1/src/c/elementaryFunctions/discrete_mathematics/factorial/sfactorials.c +++ b/2.3-1/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/2.3-1/src/c/elementaryFunctions/discrete_mathematics/primes/dprimess.c b/2.3-1/src/c/elementaryFunctions/discrete_mathematics/primes/dprimess.c index 5ecb92e1..3aa0af4d 100644 --- a/2.3-1/src/c/elementaryFunctions/discrete_mathematics/primes/dprimess.c +++ b/2.3-1/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/2.3-1/src/c/elementaryFunctions/discrete_mathematics/primes/sprimess.c b/2.3-1/src/c/elementaryFunctions/discrete_mathematics/primes/sprimess.c index 14aa2365..bff39d74 100644 --- a/2.3-1/src/c/elementaryFunctions/discrete_mathematics/primes/sprimess.c +++ b/2.3-1/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/2.3-1/src/c/elementaryFunctions/float/dfloata.c b/2.3-1/src/c/elementaryFunctions/float/dfloata.c index e27b0a11..9705bd1a 100644 --- a/2.3-1/src/c/elementaryFunctions/float/dfloata.c +++ b/2.3-1/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/2.3-1/src/c/elementaryFunctions/float/dfloats.c b/2.3-1/src/c/elementaryFunctions/float/dfloats.c index a56c24c3..ece554a8 100644 --- a/2.3-1/src/c/elementaryFunctions/float/dfloats.c +++ b/2.3-1/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/2.3-1/src/c/elementaryFunctions/float/i16floata.c b/2.3-1/src/c/elementaryFunctions/float/i16floata.c index e2366b7d..c8113af9 100644 --- a/2.3-1/src/c/elementaryFunctions/float/i16floata.c +++ b/2.3-1/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/2.3-1/src/c/elementaryFunctions/float/i16floats.c b/2.3-1/src/c/elementaryFunctions/float/i16floats.c index c0c073c7..9f3ee063 100644 --- a/2.3-1/src/c/elementaryFunctions/float/i16floats.c +++ b/2.3-1/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/2.3-1/src/c/elementaryFunctions/float/i8floata.c b/2.3-1/src/c/elementaryFunctions/float/i8floata.c index b578fe56..52f9a6a6 100644 --- a/2.3-1/src/c/elementaryFunctions/float/i8floata.c +++ b/2.3-1/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/2.3-1/src/c/elementaryFunctions/float/i8floats.c b/2.3-1/src/c/elementaryFunctions/float/i8floats.c index 15e4fc70..88127b3f 100644 --- a/2.3-1/src/c/elementaryFunctions/float/i8floats.c +++ b/2.3-1/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/2.3-1/src/c/elementaryFunctions/float/sfloata.c b/2.3-1/src/c/elementaryFunctions/float/sfloata.c index c7583ba8..34337068 100644 --- a/2.3-1/src/c/elementaryFunctions/float/sfloata.c +++ b/2.3-1/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/2.3-1/src/c/elementaryFunctions/float/sfloats.c b/2.3-1/src/c/elementaryFunctions/float/sfloats.c index e579186c..3351fb03 100644 --- a/2.3-1/src/c/elementaryFunctions/float/sfloats.c +++ b/2.3-1/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/2.3-1/src/c/elementaryFunctions/float/u16floata.c b/2.3-1/src/c/elementaryFunctions/float/u16floata.c index 28867cb9..febe5e08 100644 --- a/2.3-1/src/c/elementaryFunctions/float/u16floata.c +++ b/2.3-1/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/2.3-1/src/c/elementaryFunctions/float/u16floats.c b/2.3-1/src/c/elementaryFunctions/float/u16floats.c index f46275de..47e19aed 100644 --- a/2.3-1/src/c/elementaryFunctions/float/u16floats.c +++ b/2.3-1/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/2.3-1/src/c/elementaryFunctions/float/u8floata.c b/2.3-1/src/c/elementaryFunctions/float/u8floata.c index 84554204..a4a1fec3 100644 --- a/2.3-1/src/c/elementaryFunctions/float/u8floata.c +++ b/2.3-1/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/2.3-1/src/c/elementaryFunctions/float/u8floats.c b/2.3-1/src/c/elementaryFunctions/float/u8floats.c index f2b4c261..8b7dd8df 100644 --- a/2.3-1/src/c/elementaryFunctions/float/u8floats.c +++ b/2.3-1/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/2.3-1/src/c/elementaryFunctions/includes/float.h b/2.3-1/src/c/elementaryFunctions/includes/get_float.h index 885564b2..1ada71c9 100644 --- a/2.3-1/src/c/elementaryFunctions/includes/float.h +++ b/2.3-1/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/2.3-1/src/c/elementaryFunctions/includes/interp1.h b/2.3-1/src/c/elementaryFunctions/includes/interp1.h deleted file mode 100644 index caf42439..00000000 --- a/2.3-1/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/2.3-1/src/c/elementaryFunctions/interfaces/int_interp1.h b/2.3-1/src/c/elementaryFunctions/interfaces/int_interp1.h deleted file mode 100644 index bafe915e..00000000 --- a/2.3-1/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/2.3-1/src/c/elementaryFunctions/interpolation/dinterp1s.c b/2.3-1/src/c/elementaryFunctions/interpolation/dinterp1s.c deleted file mode 100644 index 17aeb876..00000000 --- a/2.3-1/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/2.3-1/src/c/elementaryFunctions/radix_conversions/base2dec/dbase2decs.c b/2.3-1/src/c/elementaryFunctions/radix_conversions/base2dec/dbase2decs.c index 51c42e02..a92fc76f 100644 --- a/2.3-1/src/c/elementaryFunctions/radix_conversions/base2dec/dbase2decs.c +++ b/2.3-1/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/2.3-1/src/c/elementaryFunctions/radix_conversions/base2dec/gbase2decs.c b/2.3-1/src/c/elementaryFunctions/radix_conversions/base2dec/gbase2decs.c index 9acf2666..43e3686a 100644 --- a/2.3-1/src/c/elementaryFunctions/radix_conversions/base2dec/gbase2decs.c +++ b/2.3-1/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/2.3-1/src/c/elementaryFunctions/radix_conversions/bin2dec/dbin2deca.c b/2.3-1/src/c/elementaryFunctions/radix_conversions/bin2dec/dbin2deca.c index 9baf4bda..96fccc5f 100644 --- a/2.3-1/src/c/elementaryFunctions/radix_conversions/bin2dec/dbin2deca.c +++ b/2.3-1/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/2.3-1/src/c/elementaryFunctions/radix_conversions/bin2dec/dbin2decs.c b/2.3-1/src/c/elementaryFunctions/radix_conversions/bin2dec/dbin2decs.c index 1d3cf3aa..ff363c37 100644 --- a/2.3-1/src/c/elementaryFunctions/radix_conversions/bin2dec/dbin2decs.c +++ b/2.3-1/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/2.3-1/src/c/elementaryFunctions/radix_conversions/bin2dec/i16bin2deca.c b/2.3-1/src/c/elementaryFunctions/radix_conversions/bin2dec/i16bin2deca.c index 1ebc973c..8511df92 100644 --- a/2.3-1/src/c/elementaryFunctions/radix_conversions/bin2dec/i16bin2deca.c +++ b/2.3-1/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/2.3-1/src/c/elementaryFunctions/radix_conversions/bin2dec/i16bin2decs.c b/2.3-1/src/c/elementaryFunctions/radix_conversions/bin2dec/i16bin2decs.c index 0f395416..9aa3be9b 100644 --- a/2.3-1/src/c/elementaryFunctions/radix_conversions/bin2dec/i16bin2decs.c +++ b/2.3-1/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/2.3-1/src/c/elementaryFunctions/radix_conversions/bin2dec/i8bin2deca.c b/2.3-1/src/c/elementaryFunctions/radix_conversions/bin2dec/i8bin2deca.c index ad76143e..c923ffb0 100644 --- a/2.3-1/src/c/elementaryFunctions/radix_conversions/bin2dec/i8bin2deca.c +++ b/2.3-1/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/2.3-1/src/c/elementaryFunctions/radix_conversions/bin2dec/i8bin2decs.c b/2.3-1/src/c/elementaryFunctions/radix_conversions/bin2dec/i8bin2decs.c index 1863e51a..abd3b894 100644 --- a/2.3-1/src/c/elementaryFunctions/radix_conversions/bin2dec/i8bin2decs.c +++ b/2.3-1/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/2.3-1/src/c/elementaryFunctions/radix_conversions/bin2dec/u16bin2deca.c b/2.3-1/src/c/elementaryFunctions/radix_conversions/bin2dec/u16bin2deca.c index 2a4ac15d..b6b75d71 100644 --- a/2.3-1/src/c/elementaryFunctions/radix_conversions/bin2dec/u16bin2deca.c +++ b/2.3-1/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/2.3-1/src/c/elementaryFunctions/radix_conversions/bin2dec/u16bin2decs.c b/2.3-1/src/c/elementaryFunctions/radix_conversions/bin2dec/u16bin2decs.c index 0e58b94f..cb45a201 100644 --- a/2.3-1/src/c/elementaryFunctions/radix_conversions/bin2dec/u16bin2decs.c +++ b/2.3-1/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/2.3-1/src/c/elementaryFunctions/radix_conversions/bin2dec/u8bin2deca.c b/2.3-1/src/c/elementaryFunctions/radix_conversions/bin2dec/u8bin2deca.c index f775664c..10461cad 100644 --- a/2.3-1/src/c/elementaryFunctions/radix_conversions/bin2dec/u8bin2deca.c +++ b/2.3-1/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/2.3-1/src/c/elementaryFunctions/radix_conversions/bin2dec/u8bin2decs.c b/2.3-1/src/c/elementaryFunctions/radix_conversions/bin2dec/u8bin2decs.c index 41986007..0a0f5c40 100644 --- a/2.3-1/src/c/elementaryFunctions/radix_conversions/bin2dec/u8bin2decs.c +++ b/2.3-1/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/2.3-1/src/c/elementaryFunctions/radix_conversions/dec2base/ddec2basea.c b/2.3-1/src/c/elementaryFunctions/radix_conversions/dec2base/ddec2basea.c index eeadcb76..4de34f00 100644 --- a/2.3-1/src/c/elementaryFunctions/radix_conversions/dec2base/ddec2basea.c +++ b/2.3-1/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/2.3-1/src/c/elementaryFunctions/radix_conversions/dec2base/ddec2bases.c b/2.3-1/src/c/elementaryFunctions/radix_conversions/dec2base/ddec2bases.c index 9dc7c82e..dae7bdcc 100644 --- a/2.3-1/src/c/elementaryFunctions/radix_conversions/dec2base/ddec2bases.c +++ b/2.3-1/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/2.3-1/src/c/elementaryFunctions/radix_conversions/dec2base/sdec2basea.c b/2.3-1/src/c/elementaryFunctions/radix_conversions/dec2base/sdec2basea.c index 51e12388..dc4d8590 100644 --- a/2.3-1/src/c/elementaryFunctions/radix_conversions/dec2base/sdec2basea.c +++ b/2.3-1/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/2.3-1/src/c/elementaryFunctions/radix_conversions/dec2base/sdec2bases.c b/2.3-1/src/c/elementaryFunctions/radix_conversions/dec2base/sdec2bases.c index 9abe2168..a627c052 100644 --- a/2.3-1/src/c/elementaryFunctions/radix_conversions/dec2base/sdec2bases.c +++ b/2.3-1/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/2.3-1/src/c/elementaryFunctions/radix_conversions/dec2bin/ddec2bina.c b/2.3-1/src/c/elementaryFunctions/radix_conversions/dec2bin/ddec2bina.c index e0648758..c69b7823 100644 --- a/2.3-1/src/c/elementaryFunctions/radix_conversions/dec2bin/ddec2bina.c +++ b/2.3-1/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/2.3-1/src/c/elementaryFunctions/radix_conversions/dec2bin/ddec2bins.c b/2.3-1/src/c/elementaryFunctions/radix_conversions/dec2bin/ddec2bins.c index c97fc428..f5db16c8 100644 --- a/2.3-1/src/c/elementaryFunctions/radix_conversions/dec2bin/ddec2bins.c +++ b/2.3-1/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/2.3-1/src/c/elementaryFunctions/radix_conversions/dec2bin/i16dec2bina.c b/2.3-1/src/c/elementaryFunctions/radix_conversions/dec2bin/i16dec2bina.c index 1fa251c7..93d1fdda 100644 --- a/2.3-1/src/c/elementaryFunctions/radix_conversions/dec2bin/i16dec2bina.c +++ b/2.3-1/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/2.3-1/src/c/elementaryFunctions/radix_conversions/dec2bin/i16dec2bins.c b/2.3-1/src/c/elementaryFunctions/radix_conversions/dec2bin/i16dec2bins.c index 0b06aef1..5df0fe8d 100644 --- a/2.3-1/src/c/elementaryFunctions/radix_conversions/dec2bin/i16dec2bins.c +++ b/2.3-1/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/2.3-1/src/c/elementaryFunctions/radix_conversions/dec2bin/i8dec2bina.c b/2.3-1/src/c/elementaryFunctions/radix_conversions/dec2bin/i8dec2bina.c index 2297ae9d..90062f9c 100644 --- a/2.3-1/src/c/elementaryFunctions/radix_conversions/dec2bin/i8dec2bina.c +++ b/2.3-1/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/2.3-1/src/c/elementaryFunctions/radix_conversions/dec2bin/i8dec2bins.c b/2.3-1/src/c/elementaryFunctions/radix_conversions/dec2bin/i8dec2bins.c index 4f4024c9..ea689857 100644 --- a/2.3-1/src/c/elementaryFunctions/radix_conversions/dec2bin/i8dec2bins.c +++ b/2.3-1/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/2.3-1/src/c/elementaryFunctions/radix_conversions/dec2bin/u16dec2bina.c b/2.3-1/src/c/elementaryFunctions/radix_conversions/dec2bin/u16dec2bina.c index 153ce863..165485e0 100644 --- a/2.3-1/src/c/elementaryFunctions/radix_conversions/dec2bin/u16dec2bina.c +++ b/2.3-1/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/2.3-1/src/c/elementaryFunctions/radix_conversions/dec2bin/u16dec2bins.c b/2.3-1/src/c/elementaryFunctions/radix_conversions/dec2bin/u16dec2bins.c index 1ade60f4..ea998897 100644 --- a/2.3-1/src/c/elementaryFunctions/radix_conversions/dec2bin/u16dec2bins.c +++ b/2.3-1/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/2.3-1/src/c/elementaryFunctions/radix_conversions/dec2bin/u8dec2bina.c b/2.3-1/src/c/elementaryFunctions/radix_conversions/dec2bin/u8dec2bina.c index 87fc9187..4ebdc634 100644 --- a/2.3-1/src/c/elementaryFunctions/radix_conversions/dec2bin/u8dec2bina.c +++ b/2.3-1/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/2.3-1/src/c/elementaryFunctions/radix_conversions/dec2bin/u8dec2bins.c b/2.3-1/src/c/elementaryFunctions/radix_conversions/dec2bin/u8dec2bins.c index 971f6c22..af56d92f 100644 --- a/2.3-1/src/c/elementaryFunctions/radix_conversions/dec2bin/u8dec2bins.c +++ b/2.3-1/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/2.3-1/src/c/elementaryFunctions/radix_conversions/dec2hex/ddec2hexa.c b/2.3-1/src/c/elementaryFunctions/radix_conversions/dec2hex/ddec2hexa.c index c3187d24..f2fda27a 100644 --- a/2.3-1/src/c/elementaryFunctions/radix_conversions/dec2hex/ddec2hexa.c +++ b/2.3-1/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/2.3-1/src/c/elementaryFunctions/radix_conversions/dec2hex/ddec2hexs.c b/2.3-1/src/c/elementaryFunctions/radix_conversions/dec2hex/ddec2hexs.c index 0adafef7..bcbb2667 100644 --- a/2.3-1/src/c/elementaryFunctions/radix_conversions/dec2hex/ddec2hexs.c +++ b/2.3-1/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/2.3-1/src/c/elementaryFunctions/radix_conversions/dec2hex/i16dec2hexa.c b/2.3-1/src/c/elementaryFunctions/radix_conversions/dec2hex/i16dec2hexa.c index f66df8b3..e00eec42 100644 --- a/2.3-1/src/c/elementaryFunctions/radix_conversions/dec2hex/i16dec2hexa.c +++ b/2.3-1/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/2.3-1/src/c/elementaryFunctions/radix_conversions/dec2hex/i16dec2hexs.c b/2.3-1/src/c/elementaryFunctions/radix_conversions/dec2hex/i16dec2hexs.c index f556141d..f4a15ee2 100644 --- a/2.3-1/src/c/elementaryFunctions/radix_conversions/dec2hex/i16dec2hexs.c +++ b/2.3-1/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/2.3-1/src/c/elementaryFunctions/radix_conversions/dec2hex/i8dec2hexa.c b/2.3-1/src/c/elementaryFunctions/radix_conversions/dec2hex/i8dec2hexa.c index a6c9d94d..be659d47 100644 --- a/2.3-1/src/c/elementaryFunctions/radix_conversions/dec2hex/i8dec2hexa.c +++ b/2.3-1/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/2.3-1/src/c/elementaryFunctions/radix_conversions/dec2hex/i8dec2hexs.c b/2.3-1/src/c/elementaryFunctions/radix_conversions/dec2hex/i8dec2hexs.c index a5a67722..290335f9 100644 --- a/2.3-1/src/c/elementaryFunctions/radix_conversions/dec2hex/i8dec2hexs.c +++ b/2.3-1/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/2.3-1/src/c/elementaryFunctions/radix_conversions/dec2hex/u16dec2hexa.c b/2.3-1/src/c/elementaryFunctions/radix_conversions/dec2hex/u16dec2hexa.c index 52e1ae80..abfe5aa1 100644 --- a/2.3-1/src/c/elementaryFunctions/radix_conversions/dec2hex/u16dec2hexa.c +++ b/2.3-1/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/2.3-1/src/c/elementaryFunctions/radix_conversions/dec2hex/u16dec2hexs.c b/2.3-1/src/c/elementaryFunctions/radix_conversions/dec2hex/u16dec2hexs.c index 1e942e63..b7c3c98a 100644 --- a/2.3-1/src/c/elementaryFunctions/radix_conversions/dec2hex/u16dec2hexs.c +++ b/2.3-1/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/2.3-1/src/c/elementaryFunctions/radix_conversions/dec2hex/u8dec2hexa.c b/2.3-1/src/c/elementaryFunctions/radix_conversions/dec2hex/u8dec2hexa.c index 0ac48a07..8fe0526a 100644 --- a/2.3-1/src/c/elementaryFunctions/radix_conversions/dec2hex/u8dec2hexa.c +++ b/2.3-1/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/2.3-1/src/c/elementaryFunctions/radix_conversions/dec2hex/u8dec2hexs.c b/2.3-1/src/c/elementaryFunctions/radix_conversions/dec2hex/u8dec2hexs.c index 154c23f8..acf236e6 100644 --- a/2.3-1/src/c/elementaryFunctions/radix_conversions/dec2hex/u8dec2hexs.c +++ b/2.3-1/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/2.3-1/src/c/elementaryFunctions/radix_conversions/dec2oct/ddec2octa.c b/2.3-1/src/c/elementaryFunctions/radix_conversions/dec2oct/ddec2octa.c index 03fc2dc3..f6cbcfef 100644 --- a/2.3-1/src/c/elementaryFunctions/radix_conversions/dec2oct/ddec2octa.c +++ b/2.3-1/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/2.3-1/src/c/elementaryFunctions/radix_conversions/dec2oct/ddec2octs.c b/2.3-1/src/c/elementaryFunctions/radix_conversions/dec2oct/ddec2octs.c index d06da303..702f1862 100644 --- a/2.3-1/src/c/elementaryFunctions/radix_conversions/dec2oct/ddec2octs.c +++ b/2.3-1/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/2.3-1/src/c/elementaryFunctions/radix_conversions/dec2oct/i16dec2octa.c b/2.3-1/src/c/elementaryFunctions/radix_conversions/dec2oct/i16dec2octa.c index 882b00ba..fec152c8 100644 --- a/2.3-1/src/c/elementaryFunctions/radix_conversions/dec2oct/i16dec2octa.c +++ b/2.3-1/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/2.3-1/src/c/elementaryFunctions/radix_conversions/dec2oct/i16dec2octs.c b/2.3-1/src/c/elementaryFunctions/radix_conversions/dec2oct/i16dec2octs.c index cb08845a..340958fa 100644 --- a/2.3-1/src/c/elementaryFunctions/radix_conversions/dec2oct/i16dec2octs.c +++ b/2.3-1/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/2.3-1/src/c/elementaryFunctions/radix_conversions/dec2oct/i8dec2octa.c b/2.3-1/src/c/elementaryFunctions/radix_conversions/dec2oct/i8dec2octa.c index 221f486b..0c96f01b 100644 --- a/2.3-1/src/c/elementaryFunctions/radix_conversions/dec2oct/i8dec2octa.c +++ b/2.3-1/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/2.3-1/src/c/elementaryFunctions/radix_conversions/dec2oct/i8dec2octs.c b/2.3-1/src/c/elementaryFunctions/radix_conversions/dec2oct/i8dec2octs.c index 30ae5b02..0a35f94f 100644 --- a/2.3-1/src/c/elementaryFunctions/radix_conversions/dec2oct/i8dec2octs.c +++ b/2.3-1/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/2.3-1/src/c/elementaryFunctions/radix_conversions/dec2oct/u16dec2octa.c b/2.3-1/src/c/elementaryFunctions/radix_conversions/dec2oct/u16dec2octa.c index cc0d5434..7a3e60e4 100644 --- a/2.3-1/src/c/elementaryFunctions/radix_conversions/dec2oct/u16dec2octa.c +++ b/2.3-1/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/2.3-1/src/c/elementaryFunctions/radix_conversions/dec2oct/u16dec2octs.c b/2.3-1/src/c/elementaryFunctions/radix_conversions/dec2oct/u16dec2octs.c index 4b0bd592..99936b4b 100644 --- a/2.3-1/src/c/elementaryFunctions/radix_conversions/dec2oct/u16dec2octs.c +++ b/2.3-1/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/2.3-1/src/c/elementaryFunctions/radix_conversions/dec2oct/u8dec2octa.c b/2.3-1/src/c/elementaryFunctions/radix_conversions/dec2oct/u8dec2octa.c index c187077c..1a4e0267 100644 --- a/2.3-1/src/c/elementaryFunctions/radix_conversions/dec2oct/u8dec2octa.c +++ b/2.3-1/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/2.3-1/src/c/elementaryFunctions/radix_conversions/dec2oct/u8dec2octs.c b/2.3-1/src/c/elementaryFunctions/radix_conversions/dec2oct/u8dec2octs.c index 9348630f..fbfc1048 100644 --- a/2.3-1/src/c/elementaryFunctions/radix_conversions/dec2oct/u8dec2octs.c +++ b/2.3-1/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/2.3-1/src/c/elementaryFunctions/radix_conversions/hex2dec/dhex2decs.c b/2.3-1/src/c/elementaryFunctions/radix_conversions/hex2dec/dhex2decs.c index cfe05945..42975737 100644 --- a/2.3-1/src/c/elementaryFunctions/radix_conversions/hex2dec/dhex2decs.c +++ b/2.3-1/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/2.3-1/src/c/elementaryFunctions/radix_conversions/hex2dec/ghex2decs.c b/2.3-1/src/c/elementaryFunctions/radix_conversions/hex2dec/ghex2decs.c index c5b68dbc..8722df1e 100644 --- a/2.3-1/src/c/elementaryFunctions/radix_conversions/hex2dec/ghex2decs.c +++ b/2.3-1/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/2.3-1/src/c/elementaryFunctions/radix_conversions/oct2dec/doct2deca.c b/2.3-1/src/c/elementaryFunctions/radix_conversions/oct2dec/doct2deca.c index 6bb5d00f..e3619eb3 100644 --- a/2.3-1/src/c/elementaryFunctions/radix_conversions/oct2dec/doct2deca.c +++ b/2.3-1/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/2.3-1/src/c/elementaryFunctions/radix_conversions/oct2dec/doct2decs.c b/2.3-1/src/c/elementaryFunctions/radix_conversions/oct2dec/doct2decs.c index 8f9f0b65..b126c619 100644 --- a/2.3-1/src/c/elementaryFunctions/radix_conversions/oct2dec/doct2decs.c +++ b/2.3-1/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/2.3-1/src/c/elementaryFunctions/radix_conversions/oct2dec/i16oct2deca.c b/2.3-1/src/c/elementaryFunctions/radix_conversions/oct2dec/i16oct2deca.c index 1ab843f8..9db3e2e1 100644 --- a/2.3-1/src/c/elementaryFunctions/radix_conversions/oct2dec/i16oct2deca.c +++ b/2.3-1/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/2.3-1/src/c/elementaryFunctions/radix_conversions/oct2dec/i16oct2decs.c b/2.3-1/src/c/elementaryFunctions/radix_conversions/oct2dec/i16oct2decs.c index ea092852..928c3a2a 100644 --- a/2.3-1/src/c/elementaryFunctions/radix_conversions/oct2dec/i16oct2decs.c +++ b/2.3-1/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/2.3-1/src/c/elementaryFunctions/radix_conversions/oct2dec/i8oct2deca.c b/2.3-1/src/c/elementaryFunctions/radix_conversions/oct2dec/i8oct2deca.c index 133806ce..de57a0ea 100644 --- a/2.3-1/src/c/elementaryFunctions/radix_conversions/oct2dec/i8oct2deca.c +++ b/2.3-1/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/2.3-1/src/c/elementaryFunctions/radix_conversions/oct2dec/i8oct2decs.c b/2.3-1/src/c/elementaryFunctions/radix_conversions/oct2dec/i8oct2decs.c index 1886739a..b95a0426 100644 --- a/2.3-1/src/c/elementaryFunctions/radix_conversions/oct2dec/i8oct2decs.c +++ b/2.3-1/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/2.3-1/src/c/elementaryFunctions/radix_conversions/oct2dec/u16oct2deca.c b/2.3-1/src/c/elementaryFunctions/radix_conversions/oct2dec/u16oct2deca.c index cec3a219..7778ee96 100644 --- a/2.3-1/src/c/elementaryFunctions/radix_conversions/oct2dec/u16oct2deca.c +++ b/2.3-1/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/2.3-1/src/c/elementaryFunctions/radix_conversions/oct2dec/u16oct2decs.c b/2.3-1/src/c/elementaryFunctions/radix_conversions/oct2dec/u16oct2decs.c index 43dd0ac0..4b30443e 100644 --- a/2.3-1/src/c/elementaryFunctions/radix_conversions/oct2dec/u16oct2decs.c +++ b/2.3-1/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/2.3-1/src/c/elementaryFunctions/radix_conversions/oct2dec/u8oct2deca.c b/2.3-1/src/c/elementaryFunctions/radix_conversions/oct2dec/u8oct2deca.c index 3b356587..d1880203 100644 --- a/2.3-1/src/c/elementaryFunctions/radix_conversions/oct2dec/u8oct2deca.c +++ b/2.3-1/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/2.3-1/src/c/elementaryFunctions/radix_conversions/oct2dec/u8oct2decs.c b/2.3-1/src/c/elementaryFunctions/radix_conversions/oct2dec/u8oct2decs.c index c854bc25..f804f7fd 100644 --- a/2.3-1/src/c/elementaryFunctions/radix_conversions/oct2dec/u8oct2decs.c +++ b/2.3-1/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/2.3-1/src/c/elementaryFunctions/special_functions/gamma/dgammas.c b/2.3-1/src/c/elementaryFunctions/special_functions/gamma/dgammas.c deleted file mode 100644 index c466f434..00000000 --- a/2.3-1/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; -} |