summaryrefslogtreecommitdiff
path: root/src/c/elementaryFunctions/Trigonometry/csc
diff options
context:
space:
mode:
authorSiddhesh Wani2017-05-04 16:15:18 +0530
committerSiddhesh Wani2017-05-04 16:15:18 +0530
commite36eac94dd517bb69d3e5782516ee58942451991 (patch)
tree54347eba02cd5287ac5884ab84a5ca0c99f33edb /src/c/elementaryFunctions/Trigonometry/csc
parentc7e9597db39140c1d982f796a8e1f03bb54e7905 (diff)
downloadscilab2c-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/csc')
-rw-r--r--src/c/elementaryFunctions/Trigonometry/csc/ccsca.c12
-rw-r--r--src/c/elementaryFunctions/Trigonometry/csc/ccscs.c12
-rw-r--r--src/c/elementaryFunctions/Trigonometry/csc/dcsca.c12
-rw-r--r--src/c/elementaryFunctions/Trigonometry/csc/dcscs.c12
-rw-r--r--src/c/elementaryFunctions/Trigonometry/csc/scsca.c12
-rw-r--r--src/c/elementaryFunctions/Trigonometry/csc/scscs.c12
-rw-r--r--src/c/elementaryFunctions/Trigonometry/csc/zcsca.c12
-rw-r--r--src/c/elementaryFunctions/Trigonometry/csc/zcscs.c15
8 files changed, 96 insertions, 3 deletions
diff --git a/src/c/elementaryFunctions/Trigonometry/csc/ccsca.c b/src/c/elementaryFunctions/Trigonometry/csc/ccsca.c
index 5f5504a5..7ec9a6b8 100644
--- a/src/c/elementaryFunctions/Trigonometry/csc/ccsca.c
+++ b/src/c/elementaryFunctions/Trigonometry/csc/ccsca.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 <math.h>
diff --git a/src/c/elementaryFunctions/Trigonometry/csc/ccscs.c b/src/c/elementaryFunctions/Trigonometry/csc/ccscs.c
index af8b3eb2..f16aa1b9 100644
--- a/src/c/elementaryFunctions/Trigonometry/csc/ccscs.c
+++ b/src/c/elementaryFunctions/Trigonometry/csc/ccscs.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/csc/dcsca.c b/src/c/elementaryFunctions/Trigonometry/csc/dcsca.c
index eeedea52..b1a3cf3b 100644
--- a/src/c/elementaryFunctions/Trigonometry/csc/dcsca.c
+++ b/src/c/elementaryFunctions/Trigonometry/csc/dcsca.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"
void dcsca(double* in,int size,double* out)
diff --git a/src/c/elementaryFunctions/Trigonometry/csc/dcscs.c b/src/c/elementaryFunctions/Trigonometry/csc/dcscs.c
index 31a6944e..f9e128c2 100644
--- a/src/c/elementaryFunctions/Trigonometry/csc/dcscs.c
+++ b/src/c/elementaryFunctions/Trigonometry/csc/dcscs.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 <math.h>
diff --git a/src/c/elementaryFunctions/Trigonometry/csc/scsca.c b/src/c/elementaryFunctions/Trigonometry/csc/scsca.c
index 3e6963ac..cea8338f 100644
--- a/src/c/elementaryFunctions/Trigonometry/csc/scsca.c
+++ b/src/c/elementaryFunctions/Trigonometry/csc/scsca.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"
void scsca(float* in,int size,float* out)
diff --git a/src/c/elementaryFunctions/Trigonometry/csc/scscs.c b/src/c/elementaryFunctions/Trigonometry/csc/scscs.c
index 6d1b1b7f..f0ad15e4 100644
--- a/src/c/elementaryFunctions/Trigonometry/csc/scscs.c
+++ b/src/c/elementaryFunctions/Trigonometry/csc/scscs.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 <math.h>
diff --git a/src/c/elementaryFunctions/Trigonometry/csc/zcsca.c b/src/c/elementaryFunctions/Trigonometry/csc/zcsca.c
index 4b8cdad6..59430925 100644
--- a/src/c/elementaryFunctions/Trigonometry/csc/zcsca.c
+++ b/src/c/elementaryFunctions/Trigonometry/csc/zcsca.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 <math.h>
diff --git a/src/c/elementaryFunctions/Trigonometry/csc/zcscs.c b/src/c/elementaryFunctions/Trigonometry/csc/zcscs.c
index bbb15266..64fce57a 100644
--- a/src/c/elementaryFunctions/Trigonometry/csc/zcscs.c
+++ b/src/c/elementaryFunctions/Trigonometry/csc/zcscs.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"
@@ -9,10 +21,7 @@
doubleComplex zcscs(doubleComplex z)
{
- doubleComplex out;
- //out = zrdivs(DoubleComplex(1,0),zsins(z));
double real = zreals(z);
double imag = zimags(z);
return zrdivs(DoubleComplex(1,0),(DoubleComplex(dsins(real) * dcoshs(imag), dcoss(real) * dsinhs(imag))));
- //return out;
}