From 6e4535ef3a2c3ec3a4c857673a43938fd04cba80 Mon Sep 17 00:00:00 2001 From: Ankit Raj Date: Wed, 21 Jun 2017 11:00:07 +0530 Subject: Functions added - string related and signal processing --- .../elementaryFunctions/Trigonometry/sinc/dsinca.c | 46 ++++++++++++++++++++++ .../Trigonometry/sinc/int_sinc.h | 18 +++++++++ .../c/elementaryFunctions/Trigonometry/sinc/sinc.h | 27 +++++++++++++ .../elementaryFunctions/Trigonometry/sinc/zsinca.c | 31 +++++++++++++++ 4 files changed, 122 insertions(+) create mode 100644 2.3-1/src/c/elementaryFunctions/Trigonometry/sinc/dsinca.c create mode 100644 2.3-1/src/c/elementaryFunctions/Trigonometry/sinc/int_sinc.h create mode 100644 2.3-1/src/c/elementaryFunctions/Trigonometry/sinc/sinc.h create mode 100644 2.3-1/src/c/elementaryFunctions/Trigonometry/sinc/zsinca.c (limited to '2.3-1/src/c/elementaryFunctions/Trigonometry/sinc') diff --git a/2.3-1/src/c/elementaryFunctions/Trigonometry/sinc/dsinca.c b/2.3-1/src/c/elementaryFunctions/Trigonometry/sinc/dsinca.c new file mode 100644 index 00000000..0cd24e96 --- /dev/null +++ b/2.3-1/src/c/elementaryFunctions/Trigonometry/sinc/dsinca.c @@ -0,0 +1,46 @@ +/* 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: Ankit Raj + Organization: FOSSEE, IIT Bombay + Email: toolbox@scilab.in + */ +#include +#include +#include "sinc.h" +#define PI 3.14159265358979 +void dsinca(double* sample,int size,double* oup) +{ + int j; + for(j=0;j +#include +#include "sinc.h" +#include "sin.h" +#include "doubleComplex.h" +void zsinca(doubleComplex* sample,int size,doubleComplex* oup) +{ + int j; + for(j=0;j