Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
| Download
Public worksheets for UCLA's Mathematics for Life Scientists course
Project: LS 30 Materials
Views: 10255Simulation of the 3-variable HIV model, from pages 37–40 of Modeling Life.
Equations:
Error in lines 11-11
Traceback (most recent call last):
File "/cocalc/lib/python3.9/site-packages/smc_sagews/sage_server.py", line 1230, in execute
exec(
File "", line 1, in <module>
File "/ext/sage/9.4/local/lib/python3.9/site-packages/sage/calculus/desolvers.py", line 1713, in desolve_odeint
all_vars = set().union(*[de.variables() for de in des])
File "/ext/sage/9.4/local/lib/python3.9/site-packages/sage/calculus/desolvers.py", line 1713, in <listcomp>
all_vars = set().union(*[de.variables() for de in des])
File "sage/structure/element.pyx", line 493, in sage.structure.element.Element.__getattr__ (build/cythonized/sage/structure/element.c:4708)
return self.getattr_from_category(name)
File "sage/structure/element.pyx", line 506, in sage.structure.element.Element.getattr_from_category (build/cythonized/sage/structure/element.c:4820)
return getattr_from_other_class(self, cls, name)
File "sage/cpython/getattr.pyx", line 367, in sage.cpython.getattr.getattr_from_other_class (build/cythonized/sage/cpython/getattr.c:2551)
raise AttributeError(dummy_error_message)
AttributeError: 'FreeModule_ambient_field_with_category.element_class' object has no attribute 'variables'
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.
Interact: please open in CoCalc