Unlimited learning, half price | 50% off

Last chance! 50% off unlimited learning

Sale ends in


targeted (version 0.5)

solve_ode: Solve ODE

Description

Solve ODE with Runge-Kutta method (RK4)

Usage

solve_ode(ode_ptr, input, init, par = 0)

Value

Matrix with solution

Arguments

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)

Author

Klaus Kähler Holst

Details

The external point should be created with the function targeted::specify_ode.

See Also

specify_ode

Examples

Run this code
example(specify_ode)

Run the code above in your browser using DataLab