Skip to content

Commit 31ab3da

Browse files
authored
Update README.md
1 parent 1bcde87 commit 31ab3da

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,9 @@ rc_eqs = [
6767

6868
@named rc_model = ODESystem(rc_eqs, t, systems=[resistor, capacitor, constant, source, ground])
6969
sys = structural_simplify(rc_model)
70-
prob = ODAEProblem(sys, Pair[], (0, 10.0))
70+
prob = ODEProblem(sys, Pair[], (0, 10.0))
7171
sol = solve(prob, Tsit5())
72-
plot(sol, vars = [capacitor.v, resistor.i],
72+
plot(sol, idxs = [capacitor.v, resistor.i],
7373
title = "RC Circuit Demonstration",
7474
labels = ["Capacitor Voltage" "Resistor Current"])
7575
savefig("plot.png")

0 commit comments

Comments
 (0)