summaryrefslogtreecommitdiff
path: root/2.3-1/src/c/signalProcessing/sincd/u8sincds.c
diff options
context:
space:
mode:
Diffstat (limited to '2.3-1/src/c/signalProcessing/sincd/u8sincds.c')
-rw-r--r--2.3-1/src/c/signalProcessing/sincd/u8sincds.c5
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++)