#include #include #include #include "nr.h" using namespace std; // Driver for routine vegas int idum; // for ranno int ndim; // for fxn DP xoff; DP fxn(Vec_I_DP &pt, const DP wgt) { int j; DP ans,sum; for (sum=0.0,j=0;j> ndim >> xoff >> ncall >> itmax >> nprn; if (ndim <= 0) break; Vec_DP regn(2*ndim); avgi=sd=chi2a=0.0; for (j=0;j