Skip to content

Commit a3a357f

Browse files
committed
Fix diff2term
1 parent 28b6f47 commit a3a357f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/utils.jl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -221,11 +221,12 @@ function flatten_differential(O::Term)
221221
end
222222

223223
"""
224-
diff2term(x::Symbolic) -> Term
224+
diff2term(x::Term) -> Term
225+
diff2term(x) -> x
225226
226227
diff2term(D(D(x(t)))) -> xˍtt(t)
227228
"""
228-
function diff2term(O::Symbolic)
229+
function diff2term(O)
229230
isa(O, Term) || return O
230231
if is_derivative(O)
231232
(x, t, order) = flatten_differential(O)

0 commit comments

Comments
 (0)