diff options
author | Siddhesh Wani | 2017-05-04 16:15:18 +0530 |
---|---|---|
committer | Siddhesh Wani | 2017-05-04 16:15:18 +0530 |
commit | e36eac94dd517bb69d3e5782516ee58942451991 (patch) | |
tree | 54347eba02cd5287ac5884ab84a5ca0c99f33edb /src/c/elementaryFunctions/Trigonometry/cscd | |
parent | c7e9597db39140c1d982f796a8e1f03bb54e7905 (diff) | |
download | scilab2c-e36eac94dd517bb69d3e5782516ee58942451991.tar.gz scilab2c-e36eac94dd517bb69d3e5782516ee58942451991.tar.bz2 scilab2c-e36eac94dd517bb69d3e5782516ee58942451991.zip |
Basic functions and image processing working with MSVC on windows x64
Diffstat (limited to 'src/c/elementaryFunctions/Trigonometry/cscd')
8 files changed, 106 insertions, 4 deletions
diff --git a/src/c/elementaryFunctions/Trigonometry/cscd/ccscda.c b/src/c/elementaryFunctions/Trigonometry/cscd/ccscda.c index d18d3c71..ed13f9e7 100644 --- a/src/c/elementaryFunctions/Trigonometry/cscd/ccscda.c +++ b/src/c/elementaryFunctions/Trigonometry/cscd/ccscda.c @@ -1,3 +1,15 @@ +/* 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 +*/ + #include "csc.h" #include "cscd.h" #include <math.h> diff --git a/src/c/elementaryFunctions/Trigonometry/cscd/ccscds.c b/src/c/elementaryFunctions/Trigonometry/cscd/ccscds.c index 8f1f9f75..39b2576a 100644 --- a/src/c/elementaryFunctions/Trigonometry/cscd/ccscds.c +++ b/src/c/elementaryFunctions/Trigonometry/cscd/ccscds.c @@ -1,3 +1,15 @@ +/* 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 +*/ + #include <math.h> #include "sin.h" #include "cos.h" diff --git a/src/c/elementaryFunctions/Trigonometry/cscd/dcscda.c b/src/c/elementaryFunctions/Trigonometry/cscd/dcscda.c index 43e00430..8ca3df94 100644 --- a/src/c/elementaryFunctions/Trigonometry/cscd/dcscda.c +++ b/src/c/elementaryFunctions/Trigonometry/cscd/dcscda.c @@ -1,15 +1,24 @@ +/* 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 +*/ + #include "cscd.h" #include <math.h> -#define PI 3.14159265 void dcscda(double* in,int size,double* out) { - double val; int i=0; - val = PI / 180.0; for(i=0;i<size;i++) { - out[i]=1/sin(in[i]*val); + out[i]=dcscds(in[i]); } } diff --git a/src/c/elementaryFunctions/Trigonometry/cscd/dcscds.c b/src/c/elementaryFunctions/Trigonometry/cscd/dcscds.c index d9a0df9a..af4dc30b 100644 --- a/src/c/elementaryFunctions/Trigonometry/cscd/dcscds.c +++ b/src/c/elementaryFunctions/Trigonometry/cscd/dcscds.c @@ -1,3 +1,19 @@ +/* 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 +*/ + +#ifdef _WIN32 + #define _USE_MATH_DEFINES +#endif + #include "cscd.h" #include <math.h> diff --git a/src/c/elementaryFunctions/Trigonometry/cscd/scscda.c b/src/c/elementaryFunctions/Trigonometry/cscd/scscda.c index 761d9413..17936628 100644 --- a/src/c/elementaryFunctions/Trigonometry/cscd/scscda.c +++ b/src/c/elementaryFunctions/Trigonometry/cscd/scscda.c @@ -1,3 +1,15 @@ +/* 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 +*/ + #include "cscd.h" void scscda(float* in,int size,float* out) diff --git a/src/c/elementaryFunctions/Trigonometry/cscd/scscds.c b/src/c/elementaryFunctions/Trigonometry/cscd/scscds.c index d4348549..ebf36d2d 100644 --- a/src/c/elementaryFunctions/Trigonometry/cscd/scscds.c +++ b/src/c/elementaryFunctions/Trigonometry/cscd/scscds.c @@ -1,3 +1,20 @@ +/* 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 +*/ + +#ifdef _WIN32 + #define _USE_MATH_DEFINES +#endif + + #include "cscd.h" #include <math.h> diff --git a/src/c/elementaryFunctions/Trigonometry/cscd/zcscda.c b/src/c/elementaryFunctions/Trigonometry/cscd/zcscda.c index 02f9e3b2..a8a617c2 100644 --- a/src/c/elementaryFunctions/Trigonometry/cscd/zcscda.c +++ b/src/c/elementaryFunctions/Trigonometry/cscd/zcscda.c @@ -1,3 +1,15 @@ +/* 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 +*/ + #include "csc.h" #include "cscd.h" #include <math.h> diff --git a/src/c/elementaryFunctions/Trigonometry/cscd/zcscds.c b/src/c/elementaryFunctions/Trigonometry/cscd/zcscds.c index 351c8ff2..47d5dfc1 100644 --- a/src/c/elementaryFunctions/Trigonometry/cscd/zcscds.c +++ b/src/c/elementaryFunctions/Trigonometry/cscd/zcscds.c @@ -1,3 +1,15 @@ +/* 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 +*/ + #include <math.h> #include "sin.h" #include "cos.h" |