Skip to contents

shift2term(Shift(t, -k)(x)) returns the variable xₜ₋ₖ(t) that mtkcompile() uses for the value of x k ticks earlier; a shift of a lowered variable that cancels returns the original variable.

Usage

shift2term(var)

Arguments

var

A shifted variable.

Value

A sym expression.

Examples

t <- t_nounits
x <- Variable("x", t)
shift2term(Shift(t, -1)(x))
#> xₜ₋₁(t)