next up previous contents
Next: Solving Poisson's equation Up: Modifying Numerical Recipes ODE Previous: ``makefile''

Debugging

 

As we discussed in class, using fourth-order Runge-Kutta to solve F'(x)=g(x) is equivalent to integrating tex2html_wrap_inline347 with Simpson's rule. Debug your ODE programs using the program ``rk4debug.c'' provided in Appendix A to compare the results of Runge-Kutta and Simpson's rule for this integration. Be sure to place your ``derivs_int'' at the top of the file in the indicated location.



Tomas Arias
Mon Feb 11 20:04:44 EST 2002