diff options
author | Ankitr19 | 2017-07-07 12:47:56 +0530 |
---|---|---|
committer | Ankitr19 | 2017-07-07 12:47:56 +0530 |
commit | 14b75917c2c8b8e139bfd2442ec007341af2b6e0 (patch) | |
tree | 0d91694e0e2eca49305fe0fe6d2a7e09f0979739 /2.3-1/src/c/signalProcessing/sincd/u8sincds.c | |
parent | a4f297592658439bbd7ada3105296fa4b5f81884 (diff) | |
download | Scilab2C-14b75917c2c8b8e139bfd2442ec007341af2b6e0.tar.gz Scilab2C-14b75917c2c8b8e139bfd2442ec007341af2b6e0.tar.bz2 Scilab2C-14b75917c2c8b8e139bfd2442ec007341af2b6e0.zip |
Demos and RPi compiler compatibility
Diffstat (limited to '2.3-1/src/c/signalProcessing/sincd/u8sincds.c')
-rw-r--r-- | 2.3-1/src/c/signalProcessing/sincd/u8sincds.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/2.3-1/src/c/signalProcessing/sincd/u8sincds.c b/2.3-1/src/c/signalProcessing/sincd/u8sincds.c index d03f48ae..ff0a2acc 100644 --- a/2.3-1/src/c/signalProcessing/sincd/u8sincds.c +++ b/2.3-1/src/c/signalProcessing/sincd/u8sincds.c @@ -13,12 +13,11 @@ #include<stdio.h> #include<math.h> #include "sincd.h" -#define PI 3.14159265358979 void u8sincds(int n,int flg,double* oup) { double npt=4*n; int sz=4*n; - double pas=PI/npt; + double pas=M_PI/npt; double om[sz+1]; int i; //om[0]=0; @@ -69,7 +68,7 @@ void u8sincds(int n,int flg,double* oup) int a; for(a=0;a<=4*n;a++) { - om[a]=om[a]-(PI/(2*n)); + om[a]=om[a]-(M_PI/(2*n)); } int j,k; for(j=0;j<=4*n;j++) |