void resid(res,u,rhs,n) double **res,**rhs,**u; int n; { int i,j; double h,h2i; h=1.0/(n-1); h2i=1.0/(h*h); for (j=2;j