example6: Example ODE System 6

Description Usage Arguments Details Value Author(s) See Also

View source: R/example6.R

Description

The derivative function of an example two-dimensional autonomous ODE system.

Usage

1
example6(t, y, parameters)

Arguments

t

The value of t, the independent variable, to evaluate the derivative at. Should be a single number.

y

The values of x and y, the dependent variables, to evaluate the derivative at. Should be a vector of length two.

parameters

The values of the parameters of the system. Not required here.

Details

example6 evaluates the derivatives of the following coupled ODE system at the point (t, x, y):

dx/dt = x + 2y, dy/dt = -2x + y.

Its format is designed to be compatible with ode from the deSolve package.

Value

Returns a list containing the values of the two derivatives at (t, x, y).

Author(s)

Michael J. Grayling

See Also

ode


phaseR documentation built on Aug. 20, 2018, 5:03 p.m.