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