/* note #undef's at end of file */ #define FUNC(x) ((*func)(x)) float trapzd(func,a,b,n) float (*func)(),a,b; int n; { float x,tnm,sum,del; static float s; int it,j; if (n == 1) { return (s=0.5*(b-a)*(FUNC(a)+FUNC(b))); } else { for (it=1,j=1;j