求两个积分函数之和遇到问题了
求多个积分函数之和遇到问题了,连接出现错误 undefined _fftsf symbol in module,要怎么解决?积分函数可以这样写么?#include "stdio.h"
#include "ffts.c"
main()
{ double a,b,eps,t1,t2,sum,fftsf(double);
a=0.0; b=1.0; eps=0.000001;
t1=ffts(a,b,eps,fftsf);
a=1.0; b=2.0; eps=0.000001;
t2=ffts(a,b,eps,fftsf);
sum=t1+t2;
printf("\n");
printf("sum=%e\n",sum);
printf("\n");
return 0;
}
#include "math.h"
double fftsf1(x)
{ double y;
y=exp(-x*x);
return(y);
}
double fftsf2(x)
double x;
{ double y;
y=exp(-x*x*x);
return(y);
}