Public worksheets for UCLA's Mathematics for Life Scientists course
Kernel: SageMath 9.4
Simulation of the 3-variable HIV model, from pages 37–40 of Modeling Life.
Equations:
In [8]:
Out[8]:
If you want to play around with this simulation, you can copy and paste the code below into a worksheet of your own, and run it. It will give you an interactive that allows you to change the initial values of the three variables, or to run the simulation for a longer period than 400 days.
In [9]:
Out[9]:
Interactive function <function HIV_interactive at 0x7f9f89fc64c0> with 4 widgets
initV: SelectionSlider(desc…