timedep <- function(f,dt=1) { force(f) function(state) list(x=f(state$x,state$t),t=state$t+dt) }
Add the following code to your website.
REMOVE THIS Copy to clipboard
For more information on customizing the embed code, read Embedding Snippets.