@@ -31,7 +31,7 @@ pendulum_prob = ODEProblem(pendulum_fun!, u0, tspan, p)
3131traced_sys = modelingtoolkitize(pendulum_prob)
3232pendulum_sys = structural_simplify(dae_index_lowering(traced_sys))
3333prob = ODEProblem(pendulum_sys, [], tspan)
34- sol = solve(prob, Tsit5 (), abstol = 1e-8, reltol = 1e-8)
34+ sol = solve(prob, Rodas5P (), abstol = 1e-8, reltol = 1e-8)
3535plot(sol, idxs = unknowns(traced_sys))
3636```
3737
@@ -71,7 +71,7 @@ u0 = [1.0, 0, 0, 0, 0];
7171p = [9.8, 1];
7272tspan = (0, 10.0);
7373pendulum_prob = ODEProblem(pendulum_fun!, u0, tspan, p)
74- solve(pendulum_prob, Rodas4 ())
74+ solve(pendulum_prob, Rodas5P ())
7575```
7676
7777However, one will quickly be greeted with the unfortunate message:
@@ -151,7 +151,7 @@ numerical solver. Let's try that out:
151151traced_sys = modelingtoolkitize(pendulum_prob)
152152pendulum_sys = structural_simplify(dae_index_lowering(traced_sys))
153153prob = ODEProblem(pendulum_sys, Pair[], tspan)
154- sol = solve(prob, Rodas4 ())
154+ sol = solve(prob, Rodas5P ())
155155
156156using Plots
157157plot(sol, idxs = unknowns(traced_sys))
0 commit comments