Public worksheets for UCLA's Mathematics for Life Scientists course
Kernel: SageMath 9.4
Simulation of the 4-variable HIV model, from Further Exercises 12 and 13 in Section 1.4 of Modeling Life.
Equations:
In [11]:
Out[11]:
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 [26]:
Out[26]:
Interactive function <function HIV_interactive at 0x7f3e676d6a60> with 7 widgets
initV: TransformFloatSlider…
In [43]:
Out[43]:
Interactive function <function f at 0x7f3e657bd820> with 11 widgets
t1: HTMLText(value='Initial amounts')
…
In [0]: