Discussion Overview
The discussion revolves around issues encountered while using an adaptive stepsize Runge Kutta (order 4) method to solve a set of Lotka Volterra equations. Participants explore potential causes of errors related to step size and the number of steps in the numerical integration routine.
Discussion Character
- Technical explanation
- Debate/contested
- Mathematical reasoning
Main Points Raised
- One participant reports errors indicating that the step size is too small and there are too many steps in the routine.
- Another participant suggests that the issues may stem from the implementation of the adaptive stepsize Runge Kutta method rather than the mathematics itself, emphasizing the importance of understanding the software's limitations.
- A different viewpoint highlights that the adaptive RK method may involve a fifth-order integrator for error checking, and suggests that errors could arise from incorrectly formulated derivative functions or from dealing with stiff systems.
- One participant notes that the code from Numerical Recipes works for small limits of integration but fails with larger intervals, indicating a potential issue with the range of integration.
- Another participant agrees that the problem is likely software-related and encourages the original poster to understand the code better and research the RK method.
- A further contribution points out that the user must supply a function for computing derivatives, and if this function is incorrect, it could lead to failures or incorrect results. The importance of customizing the Numerical Recipes code to the specific problem is also mentioned.
Areas of Agreement / Disagreement
Participants generally agree that the issues are related to software implementation rather than purely mathematical problems. However, there are differing opinions on the specific causes of the errors and the best approach to resolve them.
Contextual Notes
Participants mention limitations related to the precision of floating-point calculations and the necessity of customizing the Numerical Recipes routines for specific problems. There is also an acknowledgment of potential issues with stiff systems and the formulation of derivative functions.