nlsrk (version 1.1)

kmk: mck-Mc Kendrick SIR system

Description

a variant of sys to use in evrunge

Usage

kmk()

Arguments

Value

see sys Three values for three equations are returned

See Also

sys, evrunge

Examples

Run this code

## The function is currently defined as
function () 
{
    f1 <- function(t, y, param) -param[1] * y[1] * y[2]
    f2 <- function(t, y, param) param[1] * y[1] * y[2] - param[2] * y[2]
    f3 <- function(t, y, param) param[2] * y[2]
    c(f1, f2, f3)
  }

Run the code above in your browser using DataCamp Workspace