inst/examples/logistic.R

deriv(N) <- r * N * (1 - N / K)
initial(N) <- N0

N0 <- 1
K <- 100
r <- 0.5

Try the odin package in your browser

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

odin documentation built on April 4, 2025, 4:58 a.m.