From b43eccd4cffed5bd1017c5821524fb6e49202f78 Mon Sep 17 00:00:00 2001 From: Sandeep Gupta Date: Sun, 18 Jun 2017 23:55:40 +0530 Subject: First commit --- .../c/elementaryFunctions/Trigonometry/csc/ccsca.c | 23 ++++++++++++++++++ .../c/elementaryFunctions/Trigonometry/csc/ccscs.c | 28 ++++++++++++++++++++++ .../c/elementaryFunctions/Trigonometry/csc/dcsca.c | 22 +++++++++++++++++ .../c/elementaryFunctions/Trigonometry/csc/dcscs.c | 21 ++++++++++++++++ .../c/elementaryFunctions/Trigonometry/csc/scsca.c | 22 +++++++++++++++++ .../c/elementaryFunctions/Trigonometry/csc/scscs.c | 21 ++++++++++++++++ .../c/elementaryFunctions/Trigonometry/csc/zcsca.c | 23 ++++++++++++++++++ .../c/elementaryFunctions/Trigonometry/csc/zcscs.c | 27 +++++++++++++++++++++ 8 files changed, 187 insertions(+) create mode 100644 2.3-1/src/c/elementaryFunctions/Trigonometry/csc/ccsca.c create mode 100644 2.3-1/src/c/elementaryFunctions/Trigonometry/csc/ccscs.c create mode 100644 2.3-1/src/c/elementaryFunctions/Trigonometry/csc/dcsca.c create mode 100644 2.3-1/src/c/elementaryFunctions/Trigonometry/csc/dcscs.c create mode 100644 2.3-1/src/c/elementaryFunctions/Trigonometry/csc/scsca.c create mode 100644 2.3-1/src/c/elementaryFunctions/Trigonometry/csc/scscs.c create mode 100644 2.3-1/src/c/elementaryFunctions/Trigonometry/csc/zcsca.c create mode 100644 2.3-1/src/c/elementaryFunctions/Trigonometry/csc/zcscs.c (limited to '2.3-1/src/c/elementaryFunctions/Trigonometry/csc') diff --git a/2.3-1/src/c/elementaryFunctions/Trigonometry/csc/ccsca.c b/2.3-1/src/c/elementaryFunctions/Trigonometry/csc/ccsca.c new file mode 100644 index 00000000..7ec9a6b8 --- /dev/null +++ b/2.3-1/src/c/elementaryFunctions/Trigonometry/csc/ccsca.c @@ -0,0 +1,23 @@ +/* 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 + +void ccsca(floatComplex* in, int size,floatComplex* out) +{ + int i = 0; + for (i=0;i +#include "sin.h" +#include "cos.h" +#include "sinh.h" +#include "cosh.h" +#include "csc.h" +#include "floatComplex.h" +#include "division.h" + +floatComplex ccscs(floatComplex z) +{ + + floatComplex out; + out = crdivs(FloatComplex(1,0),csins(z)); + return out; +} diff --git a/2.3-1/src/c/elementaryFunctions/Trigonometry/csc/dcsca.c b/2.3-1/src/c/elementaryFunctions/Trigonometry/csc/dcsca.c new file mode 100644 index 00000000..b1a3cf3b --- /dev/null +++ b/2.3-1/src/c/elementaryFunctions/Trigonometry/csc/dcsca.c @@ -0,0 +1,22 @@ +/* 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) +{ + int i = 0; + for (i = 0;i + +double dcscs(double in) +{ + double out; + out=1/sin(in); + return out; +} diff --git a/2.3-1/src/c/elementaryFunctions/Trigonometry/csc/scsca.c b/2.3-1/src/c/elementaryFunctions/Trigonometry/csc/scsca.c new file mode 100644 index 00000000..cea8338f --- /dev/null +++ b/2.3-1/src/c/elementaryFunctions/Trigonometry/csc/scsca.c @@ -0,0 +1,22 @@ +/* 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) +{ + int i = 0; + for (i = 0;i + +float scscs(float in) +{ + float out; + out=1/sin(in); + return out; +} diff --git a/2.3-1/src/c/elementaryFunctions/Trigonometry/csc/zcsca.c b/2.3-1/src/c/elementaryFunctions/Trigonometry/csc/zcsca.c new file mode 100644 index 00000000..59430925 --- /dev/null +++ b/2.3-1/src/c/elementaryFunctions/Trigonometry/csc/zcsca.c @@ -0,0 +1,23 @@ +/* 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 + +void zcsca(doubleComplex* in, int size,doubleComplex* out) +{ + int i = 0; + for (i=0;i +#include "sin.h" +#include "cos.h" +#include "sinh.h" +#include "cosh.h" +#include "csc.h" +#include "doubleComplex.h" +#include "division.h" + +doubleComplex zcscs(doubleComplex z) +{ + double real = zreals(z); + double imag = zimags(z); + return zrdivs(DoubleComplex(1,0),(DoubleComplex(dsins(real) * dcoshs(imag), dcoss(real) * dsinhs(imag)))); +} -- cgit