#include #define NRANSI #include "nrutil.h" #define PI 3.141592653589793 void chebft(float a, float b, float c[], int n, float (*func)(float)) { int k,j; float fac,bpa,bma,*f; f=vector(0,n-1); bma=0.5*(b-a); bpa=0.5*(b+a); for (k=0;k