#include "nr.h" void NR::mmid(Vec_I_DP &y, Vec_I_DP &dydx, 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,n; DP x,swap,h2,h; int nvar=y.size(); Vec_DP ym(nvar),yn(nvar); h=htot/nstep; for (i=0;i