Description Usage Arguments Details Value
An implementation of the fourth-order Runge-Kutta scheme for arbitrary first-order ODE systems of finite dimension.
1 | ode.RK4(dynamics, IC, t0 = 0, tn = 1, n = 1000)
|
dynamics |
a list of functions defining the dynamics of the system, with as many variables as IC, and in the same order with the names |
IC |
a list of variables with the same names as the non-time input as f, in the same order with initial values |
t0 |
initial time |
tn |
ending time |
n |
number of sub-intervals in time-grid |
The list of functions, each of which must have arguments (t,x,y,z)
for each element matching the elements of IC
as list(x = y0, y = y0, z = z0)
for example.
data.frame
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.