solve_ode | R Documentation |
Solve ODE with Runge-Kutta method (RK4)
solve_ode(ode_ptr, input, init, par = 0)
ode_ptr |
pointer (externalptr) to C++ function or an R function |
input |
Input matrix. 1st column specifies the time points |
init |
Initial conditions |
par |
Parameters defining the ODE (parsed to ode_ptr) |
The external point should be created with the function targeted::specify_ode
.
Matrix with solution
Klaus Kähler Holst
specify_ode
example(specify_ode)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.