#include #include #include #include "nr.h" using namespace std; // Driver for routine amoeba DP func(Vec_I_DP &x) { return 0.6-NR::bessj0(SQR(x[0]-0.5)+SQR(x[1]-0.6)+SQR(x[2]-0.7)); } int main(void) { const int MP=4,NP=3; const DP FTOL=1.0e-10; int i,nfunc,j; Vec_DP x(NP),y(MP); Mat_DP p(MP,NP); for (i=0;i