#include "nr.h" void NR::simpr(Vec_I_DP &y, Vec_I_DP &dydx, Vec_I_DP &dfdx, Mat_I_DP &dfdy, const DP xs, const DP htot, const int nstep, Vec_O_DP &yout, void derivs(const DP, Vec_I_DP &, Vec_O_DP &)) { int i,j,nn; DP d,h,x; int n=y.size(); Mat_DP a(n,n); Vec_INT indx(n); Vec_DP del(n),ytemp(n); h=htot/nstep; for (i=0;i