Skip to content

Commit

Permalink
Complex diff test
Browse files Browse the repository at this point in the history
  • Loading branch information
shashi committed Jun 6, 2023
1 parent 01305c6 commit 962e2b4
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/diff.jl
Original file line number Diff line number Diff line change
Expand Up @@ -339,3 +339,12 @@ let
@variables x(t)[1:3]
@test iszero(Symbolics.derivative(x[1], x[2]))
end

#908
#
let
using Symbolics
@variables t
@test isequal(expand_derivatives(Differential(t)(im*t)), im)
@test isequal(expand_derivatives(Differential(t)(t^2 + im*t)), 2t + im)
end

0 comments on commit 962e2b4

Please sign in to comment.