#include #define NRANSI #define NMAX 5000 #define GET_PSUM {for (j=1;j<=ndim;j++) {for (sum=0.0,i=1;i<=mpts;i++) sum += p[i][j]; psum[j]=sum;}} #define SWAP(a,b) {swap=(a);(a)=(b);(b)=swap;} void amotst(float **p, float y[], int ndim, float ftol, float (*funk)(float []), int *nfunk) { float junk; printf("%f %f %f %f %f %f \n",y[1],y[2],y[3],y[4],y[5],ftol); printf("%d %f \n", ndim, ftol); printf("%f %f %f %f\n",p[5][1],p[5][2],p[5][3],p[5][4]); junk = funk(p[4]); printf("%f \n",junk); } #undef SWAP #undef GET_PSUM #undef NMAX #undef NRANSI /* (C) Copr. 1986-92 Numerical Recipes Software 9='0='. */