From 21d34103a031f10f8ccd3969d82c92e5c0341aaa Mon Sep 17 00:00:00 2001 From: Christopher Rackauckas Date: Thu, 27 Jun 2024 00:09:02 +0800 Subject: [PATCH] Update diff.jl --- src/diff.jl | 1 + 1 file changed, 1 insertion(+) diff --git a/src/diff.jl b/src/diff.jl index 1a8e32d17..9f7a13afe 100644 --- a/src/diff.jl +++ b/src/diff.jl @@ -45,6 +45,7 @@ end (D::Differential)(x::Union{Num, Arr}) = wrap(D(unwrap(x))) (D::Differential)(x::Complex{Num}) = wrap(ComplexTerm{Real}(D(unwrap(real(x))), D(unwrap(imag(x))))) SymbolicUtils.promote_symtype(::Differential, T) = T +SymbolicUtils.isbinop(f::Differential) = false is_derivative(x) = iscall(x) ? operation(x) isa Differential : false