Skip to content

Commit

Permalink
Update diff.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisRackauckas authored Jun 26, 2024
1 parent bacde53 commit 21d3410
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/diff.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 21d3410

Please sign in to comment.