Skip to content
Prev 152846 / 398500 Next

Differential Equations there use in R (population modeling)

There was a spurious tilde in the code coming
from my digital signature -- oops.  ignore the
tilde in the function:

library(odesolve)

## in general x, b are state and parameter VECTORS
e1B <- function(t,x,b) {
     list(x*b^t,NULL)
}

L1 = lsoda(y=1,times=seq(0,1,by=0.02),func=e1B,parms=c(b=0.9))
plot(L1[,1],L1[,2])
stephen sefick wrote: