#include "nr.h" void NR::stoerm(Vec_I_DP &y, Vec_I_DP &d2y, 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,nn,n,neqns; DP h,h2,halfh,x; int nv=y.size(); Vec_DP ytemp(nv); h=htot/nstep; halfh=0.5*h; neqns=nv/2; for (i=0;i