diff options
author | Sandeep Gupta | 2017-07-05 12:41:25 +0530 |
---|---|---|
committer | Sandeep Gupta | 2017-07-05 12:41:25 +0530 |
commit | dd50e95a8193fb0faa846ccaa971a115ba69e71c (patch) | |
tree | 8d66abedd68dc5255ad323b95a16c9b592657f35 /2.3-1/src/c/signalProcessing/zpbutt | |
parent | 3308ea7a973e2c1e1c8bea99ac7cc783ce8e8b06 (diff) | |
download | Scilab2C-dd50e95a8193fb0faa846ccaa971a115ba69e71c.tar.gz Scilab2C-dd50e95a8193fb0faa846ccaa971a115ba69e71c.tar.bz2 Scilab2C-dd50e95a8193fb0faa846ccaa971a115ba69e71c.zip |
LinearAlgebra and MatrixOperation Update
Diffstat (limited to '2.3-1/src/c/signalProcessing/zpbutt')
-rw-r--r-- | 2.3-1/src/c/signalProcessing/zpbutt/dzpbutts.c | 33 | ||||
-rw-r--r-- | 2.3-1/src/c/signalProcessing/zpbutt/int_zpbutt.h | 19 | ||||
-rw-r--r-- | 2.3-1/src/c/signalProcessing/zpbutt/zpbutt.h | 27 |
3 files changed, 0 insertions, 79 deletions
diff --git a/2.3-1/src/c/signalProcessing/zpbutt/dzpbutts.c b/2.3-1/src/c/signalProcessing/zpbutt/dzpbutts.c deleted file mode 100644 index 33f22af9..00000000 --- a/2.3-1/src/c/signalProcessing/zpbutt/dzpbutts.c +++ /dev/null @@ -1,33 +0,0 @@ -/* Copyright (C) 2017 - 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<stdio.h> -#include<math.h> -#include "zpbutt.h" -#define PI 3.14159265 -double dzpbutts(double n,double fl,doubleComplex* out) -{ - double e= PI/(2.0*(n)); - int k; - double rl,cpx,gain; - for(k=1;k<=n;k++) - { - double v=2.0*(double)k+(n)-1.0; - rl=(fl)*cos(e*v); - cpx=(fl)*sin(e*v); - out[k-1]=DoubleComplex(rl,cpx); - } - gain=pow(fl,n); - -return gain; - -} - diff --git a/2.3-1/src/c/signalProcessing/zpbutt/int_zpbutt.h b/2.3-1/src/c/signalProcessing/zpbutt/int_zpbutt.h deleted file mode 100644 index 72eae8a2..00000000 --- a/2.3-1/src/c/signalProcessing/zpbutt/int_zpbutt.h +++ /dev/null @@ -1,19 +0,0 @@ -/* 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 - */ - -#ifndef __INT_ZPBUTT_H__ -#define __INT_ZPBUTT_H__ - -#define d0d0zpbuttzada(n,fl,out,gain) dzpbutts(n,fl,out,gain) - -#endif /* !INT_ZPBUTT_H__ */ - diff --git a/2.3-1/src/c/signalProcessing/zpbutt/zpbutt.h b/2.3-1/src/c/signalProcessing/zpbutt/zpbutt.h deleted file mode 100644 index 6883942c..00000000 --- a/2.3-1/src/c/signalProcessing/zpbutt/zpbutt.h +++ /dev/null @@ -1,27 +0,0 @@ -/* 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 - */ - -#ifndef __ZPBUTT_H__ -#define __ZPBUTT_H__ -#include "types.h" -#include "doubleComplex.h" - -#ifdef __cplusplus -extern "C" { -#endif - -void dzpbutts(double* n,double* fl,doublecomplex* out,double* gain); - -#ifdef __cplusplus -} /* extern "C" */ -#endif - |