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