ode.EulerScheme: Solve arbitrary first order ODE systems

Description Usage Arguments Details Value

View source: R/odeEulerScheme.R

Description

A general Euler scheme implementation for arbitrary first-order ODE systems of finite dimension.

Usage

1
ode.EulerScheme(dynamics, IC, t0 = 0, tn = 1, n = 1000)

Arguments

dynamics

a list of functions with as many variables as IC, and in the same order with the names defining the dynamics of the system

IC

a list of variables with the same names as the non-time input as dynamics, in the same order with initial values

t0

initial time

tn

ending time

n

number of sub-intervals in time-grid

Details

The list of functions each element with arguments (t,x,y,z) for each element matching the elements of IC as list(x = y0, y = y0, z = z0) for example.

Value

data.frame


shill1729/odeSolveR documentation built on March 31, 2021, 10:52 a.m.