Classical Runge-Kutta of order 4.
Arguments
- f
function in the differential equation \(y' = f(x, y)\); defined as a function \(R \times R^m \rightarrow R^m\), where \(m\) is the number of equations.
- a
starting time for the interval to integrate
- b
ending time for the interval to integrate.
- y0
starting values at time
a
- n
the number of steps from a to b.
- Pars
named list of parameters passed to f
- ...
additional inputs to function
f