example1: Example ODE system 1

View source: R/example1.R

example1R Documentation

Example ODE system 1

Description

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

Usage

example1(t, y, parameters)

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.

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.

Value

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

Author(s)

Michael J Grayling

See Also

ode


mjg211/phaseR documentation built on Sept. 11, 2022, 6:26 p.m.