#include #include "nr.h" using namespace std; void NR::ratint(Vec_I_DP &xa, Vec_I_DP &ya, const DP x, DP &y, DP &dy) { const DP TINY=1.0e-25; int m,i,ns=0; DP w,t,hh,h,dd; int n=xa.size(); Vec_DP c(n),d(n); hh=fabs(x-xa[0]); for (i=0;i