Starting from:

$25

COSC4320-Assignment 4 Solved

1.      The motion of a simple pendulum can be expressed as .  Write a Python script that plots the phase space for the model.  If done correctly it should look like this:



Tip: use the sample code for Continuous Time modeling I uploaded as an example

2.      (4 points) The SIR model is given as

𝑑𝑆



Tip: You should note that the third equation does not influence the first two. So, it can be ignored. Using the first two equations only, develop a Python script that will plot the phase space of the model. You should get something like this as your output

More products