A8 Differential equations · Practice
Numerical solutions (Euler, RK4)
Problems dealt one at a time, with new numbers every time. The kinds you miss come back more often, and you can keep going as long as you like.
0 solved
0 in a row
0 of 8 kinds solid
Check
Simulate the scaled ideal LC circuit , from with Euler's method, step = 0.1, for 50 steps. Fill the arrays x and y, and set ratio to the energy at the end divided by the energy at the start.
Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.
Check
Write rk4(f, t, s, h), one RK4 step for a state vector s. Use it to find the step response of with ζ = 0.5, from rest, at (200 steps of 0.05). Set x_end.
Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.
Check
The function below runs RK4 on from to . Find its error against with step 0.2 (err1) and with half that step (err2), and set ratio to err1 / err2.
Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.
Check
Euler's method steps the scaled LC circuit with = 0.2. By what factor does each step multiply the amplitude?
Check
Euler's method steps from to with = 0.2.
(a)
What does it give?
(b)
What is its error?
Check
For , , one Euler step of 0.2 starts at = (4, −3). What is the new ?
Check
You shrink an RK4 step by a factor of 3. By roughly what factor does the error fall?
Check
Euler's method runs the scaled LC circuit for 10 steps of 0.3. By what factor has the energy grown?
A kind of problem counts as solid once you've got it right on the first try twice in a row. Back to the lesson · Practice every topic in A8