R/dfdt.R

dfdt <- function (t, y, param) 
#############################################################################
# Example : the logistic differential equation :                            #
# dy/dt = r y(1-y/k)                                                        #
# r is param[1], k is param[2]                                              #
#############################################################################
{
    param[1] * y * (1 - y/param[2])
}

Try the nlsrk package in your browser

Any scripts or data that you put into this service are public.

nlsrk documentation built on May 1, 2019, 8:48 p.m.