stability {phaseR} | R Documentation |
Stability analysis
Description
Uses stability analysis to classify equilibrium points. Uses the Taylor Series approach (also known as perturbation analysis) to classify equilibrium points of a one -imensional autonomous ODE system, or the Jacobian approach to classify equilibrium points of a two-dimensional autonomous ODE system. In addition, it can be used to return the Jacobian at any point of a two-dimensional system.
Usage
stability(
deriv,
ystar = NULL,
parameters = NULL,
system = "two.dim",
h = 1e-07,
summary = TRUE,
state.names = if (system == "two.dim") c("x", "y") else "y"
)
Arguments
deriv |
A function computing the derivative at a point for the ODE
system to be analysed. Discussion of the required structure of these
functions can be found in the package vignette, or in the help file for the
function |
ystar |
The point at which to perform stability analysis. For a
one-dimensional system this should be a |
parameters |
Parameters of the ODE system, to be passed to |
system |
Set to either |
h |
Step length used to approximate the derivative(s). Defaults to
|
summary |
Set to either |
state.names |
The state names for |
Value
Returns a list
with the following components (the
exact make up is dependent upon the value of system):
classification |
The classification of |
Delta |
In the two-dimensional system case, the value of the Jacobian's
determinant at |
deriv |
As per input. |
discriminant |
In the one-dimensional system case, the value of the
discriminant used in perturbation analysis to assess stability. In the
two-dimensional system case, the value of |
eigenvalues |
In the two-dimensional system case, the value of the
Jacobian's eigenvalues at |
eigenvectors |
In the two-dimensional system case, the value of the
Jacobian's eigenvectors at |
jacobian |
In the two-dimensional system case, the Jacobian at
|
h |
As per input. |
parameters |
As per input. |
summary |
As per input. |
system |
As per input. |
tr |
In the two-dimensional system case, the value of the Jacobian's
trace at |
ystar |
As per input. |
Author(s)
Michael J Grayling
Examples
# Determine the stability of the equilibrium points of the one-dimensional
# autonomous ODE system example2
example2_stability_1 <- stability(example2, ystar = 0, system = "one.dim")
example2_stability_2 <- stability(example2, ystar = 1, system = "one.dim")
example2_stability_3 <- stability(example2, ystar = 2, system = "one.dim")
# Determine the stability of the equilibrium points of the two-dimensional
# autonomous ODE system example11
example11_stability_1 <- stability(example11, ystar = c(0, 0))
example11_stability_2 <- stability(example11, ystar = c(0, 2))
example11_stability_3 <- stability(example11, ystar = c(1, 1))
example11_stability_4 <- stability(example11, ystar = c(3, 0))