Description Usage Arguments Details Value
One dimensional first order ODE solver using either RK4 or an Euler scheme..
1 | ode1(f, y0, t0 = 0, tn = 1, n = 1000, engine = "RK4")
|
f |
the function of t and y in the explicit ODE y'=f(t,y) |
y0 |
the initial value |
t0 |
the initial value input |
tn |
the terminal value input |
n |
the number of sub-intervals to use, defaults to 1000 |
engine |
the type of scheme to use, defaults to RK4. |
f
must be a function of time and the state variable y
. The engine must either be "RK4" or "Euler"
data.frame of the time grid and solution grid
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.