Description
Unformatted Attachment Preview
Don't use plagiarized sources. Get Your Custom Assignment on
simulation
From as Little as $13/Page
Assignment 3
Problem 1: Simulate the following continuous-time Lotka-Volterra (predator- prey)
model for 0 ≤ t < 50 in Python, with x(0) = y(0) = 0.1, a = b = c = d = 1 and ∆t =
0.01. Visualize the simulation results over time and also in a phase space.
Then try to reduce the value of ∆t to even smaller values and see how the simulation results are affected by such changes. Discuss what the overall results imply
about the Euler forward method.
Problem 2: Draw a phase space of the following differential equation (motion of a
simple pendulum) in Python:
Purchase answer to see full
attachment