Learn R Programming

phaseR (version 2.2.1)

example1: Example ODE system 1

Description

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

Usage

example1(t, y, parameters)

Value

Returns a list containing the value of the derivative at (t, y).

Arguments

t

The value of t, the independent variable, to evaluate the derivative at. Should be a numeric vector of length one.

y

The value of y, the dependent variable, to evaluate the derivative at. Should be a numeric vector of length one.

parameters

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

Author

Michael J Grayling

Details

example1 evaluates the derivative of the following ODE at the point (t, y):

dy/dt = 4 - y2.

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

See Also

ode