tests/testthat/pkg/inst/odin/pulse.R

config(include) <- "user_fns.c"
z <- squarepulse(t, 1, 2)
output(z) <- z
deriv(y) <- z
initial(y) <- 0

Try the odin package in your browser

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

odin documentation built on Oct. 2, 2023, 5:07 p.m.