We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Shift
Equation
1 parent 0b4000c commit 6595aceCopy full SHA for 6595ace
src/discretedomain.jl
@@ -70,6 +70,9 @@ normalize_to_differential(s::Shift) = Differential(s.t)^s.steps
70
Base.nameof(::Shift) = :Shift
71
SymbolicUtils.isbinop(::Shift) = false
72
73
+function (D::Shift)(x::Equation, allow_zero = false)
74
+ D(x.lhs, allow_zero) ~ D(x.rhs, allow_zero)
75
+end
76
function (D::Shift)(x, allow_zero = false)
77
!allow_zero && D.steps == 0 && return x
78
term(D, x; type = symtype(x), shape = SU.shape(x))
0 commit comments