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 April 4, 2025, 4:58 a.m.