File tree Expand file tree Collapse file tree 4 files changed +6
-33
lines changed Expand file tree Collapse file tree 4 files changed +6
-33
lines changed Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -4,11 +4,14 @@ using Test
4
4
# Derivatives
5
5
@Param t σ ρ β
6
6
@Unknown x (t) y (t) z (t)
7
- @Deriv D' ~ t
8
- dsin = D (sin (t))
9
- expand_derivatives (dsin)
7
+ @Deriv D' ~ t D2'' ~ t
8
+
9
+ @test expand_derivatives (D (t)) == 1
10
+ @test expand_derivatives (D (D (t))) == 0
10
11
12
+ dsin = D (sin (t))
11
13
@test expand_derivatives (dsin) == cos (t)
14
+
12
15
dcsch = D (csch (t))
13
16
@test expand_derivatives (dcsch) == simplify_constants (coth (t) * csch (t) * - 1 )
14
17
Original file line number Diff line number Diff line change 1
1
using ModelingToolkit, Test
2
2
3
3
@testset " Parsing Test" begin include (" variable_parsing.jl" ) end
4
- @testset " Basic Variables and Operations" begin include (" basic_variables_and_operations.jl" ) end
5
4
@testset " Differentiation Test" begin include (" derivatives.jl" ) end
6
5
@testset " Simplify Test" begin include (" simplify.jl" ) end
7
- @testset " Ambiguity Test" begin include (" ambiguity.jl" ) end
8
6
@testset " System Construction Test" begin include (" system_construction.jl" ) end
You can’t perform that action at this time.
0 commit comments