diff options
Diffstat (limited to '2.3-1/src/c/elementaryFunctions/Trigonometry/cscd/dcscda.c')
-rw-r--r-- | 2.3-1/src/c/elementaryFunctions/Trigonometry/cscd/dcscda.c | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/2.3-1/src/c/elementaryFunctions/Trigonometry/cscd/dcscda.c b/2.3-1/src/c/elementaryFunctions/Trigonometry/cscd/dcscda.c index 43e00430..8ca3df94 100644 --- a/2.3-1/src/c/elementaryFunctions/Trigonometry/cscd/dcscda.c +++ b/2.3-1/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]); } } |