General Considerations
Numerical Approximations
Section titled “Numerical Approximations”Differential Equations
Section titled “Differential Equations”Given an ordinary differential equation (ODE) for simulating a quantity over time :
where is some expression that can depend on and/or . Point can be propagated to the next point via explicit Euler method:
where is the time step. The approximation can be quite crude, especially for large . In case of an ODE that converges towards a fixed value, this can lead to overshooting the target, which is why clamping is often advised. For ODEs of the form below:
with rate constant and target . The target gets approached with exponential convergence and the clamped version of explicit Euler can be simplified with linear interpolation ():

