Skip to content

Commit

Permalink
Merge branch 'compilation' of https://github.com/JuliaSymbolics/Symbo…
Browse files Browse the repository at this point in the history
…lics.jl into compilation
  • Loading branch information
ChrisRackauckas committed Jun 27, 2024
2 parents 9b4de2d + 21d3410 commit 100351c
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 100351c

Please sign in to comment.