We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 573e713 commit 38141feCopy full SHA for 38141fe
test/reduction.jl
@@ -255,3 +255,17 @@ eqs = [a ~ D(w)
255
ss = alias_elimination(sys)
256
@test equations(ss) == [0 ~ D(D(phi)) - a, 0 ~ sin(t) - D(phi)]
257
@test observed(ss) == [w ~ D(phi)]
258
+
259
+@variables t x(t) y(t)
260
+D = Differential(t)
261
+@named sys = ODESystem([D(x) ~ 1 - x,
262
+ D(y) + D(x) ~ 0])
263
+new_sys = structural_simplify(sys)
264
+@test equations(new_sys) == [D(x) ~ 1 - x]
265
+@test observed(new_sys) == [D(y) ~ -D(x)]
266
267
268
+ y + D(x) ~ 0])
269
270
271
+@test observed(new_sys) == [y ~ -D(x)]
0 commit comments