eode_is_validval {ecode}R Documentation

Test the Validity of a Phase Point

Description

Test whether a phase point sits out of the boundary of an ODE system.

Usage

eode_is_validval(x, value)

Arguments

x

object of class "eode" representing an ODE system.

value

an object of class "pp" representing a phase point in the ODE system under consideration.

Value

returns TRUE or FALSE depending on whether the values of the system variables are within the boundary or not.

Examples

eq1 <- function(x, y, r1 = 4, a11 = 1, a12 = 2) (r1 - a11 * x - a12 * y) * x
eq2 <- function(x, y, r2 = 1, a21 = 2, a22 = 1) (r2 - a21 * x - a22 * y) * y
x <- eode(dxdt = eq1, dydt = eq2)
eode_is_validval(x, value = pp(list(x = 1, y = 1)))

[Package ecode version 0.1.0 Index]