summaryrefslogtreecommitdiff
path: root/fourier.c
diff options
context:
space:
mode:
Diffstat (limited to 'fourier.c')
-rw-r--r--fourier.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/fourier.c b/fourier.c
index edca41e..e52bce8 100644
--- a/fourier.c
+++ b/fourier.c
@@ -27,8 +27,6 @@ static double thefunction(double x,
double omega_n,
int select);
-static double results;
-
/**************
** DoFourier **
***************
@@ -37,7 +35,7 @@ static double results;
** fourier coefficients of the function (x+1)^x defined
** on the interval 0,2.
*/
-void
+double
DoFourier(void)
{
const char* context = "FPU:Transcendental";
@@ -107,7 +105,7 @@ DoFourier(void)
free(abase);
free(bbase);
- results = (double)(iterations * CLOCKS_PER_SEC) / (double)total_time;
+ return (double)(iterations * CLOCKS_PER_SEC) / (double)total_time;
}
/************************
@@ -241,9 +239,3 @@ switch(select)
*/
return(0.0);
}
-
-double
-getFourierScore(void)
-{
- return results;
-}