Skip to content

Commit 2ff6db1

Browse files
committed
Fix typo in expand_derivatives
1 parent 1928031 commit 2ff6db1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/differentials.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ function expand_derivatives(O::Term, simplify=true; occurances=nothing)
8989
else
9090
inner = expand_derivatives(D(o.args[1]), false)
9191
# if the inner expression is not expandable either, return
92-
if operation(inner) isa Differential
92+
if inner isa Term && operation(inner) isa Differential
9393
return O
9494
else
9595
return expand_derivatives(o.op(inner), simplify)

0 commit comments

Comments
 (0)