Skip to content

Commit 6595ace

Browse files
fix: handle Shift applied to Equation
1 parent 0b4000c commit 6595ace

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/discretedomain.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,9 @@ normalize_to_differential(s::Shift) = Differential(s.t)^s.steps
7070
Base.nameof(::Shift) = :Shift
7171
SymbolicUtils.isbinop(::Shift) = false
7272

73+
function (D::Shift)(x::Equation, allow_zero = false)
74+
D(x.lhs, allow_zero) ~ D(x.rhs, allow_zero)
75+
end
7376
function (D::Shift)(x, allow_zero = false)
7477
!allow_zero && D.steps == 0 && return x
7578
term(D, x; type = symtype(x), shape = SU.shape(x))

0 commit comments

Comments
 (0)