modelisationvih.py

Created by niz-moussatat

Created on March 30, 2025

396 Bytes

chapitre 11, modélisation des premiers jours d’une infection VIH, sous les hypothèses de MaLean-Phillips.


import matplotlib.pyplot as plt
v= 0
r= 100
e= 10
V= [v]
#R= [r]
#E= [e]
DeltaT= 0.1
T = 15
borne = int(T/DeltaT)
for i in range(borne) :
  v = (100*e - 2* v)*DeltaT+v
  r = (0.272 -0.00136*r -0.00027*r*v)*DeltaT+r
  e = (0.00027*r*v-0.33*e)*DeltaT+e
  V.append(v)
  #R.append(r)
  #E.append(e)
#t = range(0, borne+1)  
plt.plot(V)
#plt.plot(t,R)
#plt.plot(t,E)
plt.show() 

During your visit to our site, NumWorks needs to install "cookies" or use other technologies to collect data about you in order to:

With the exception of Cookies essential to the operation of the site, NumWorks leaves you the choice: you can accept Cookies for audience measurement by clicking on the "Accept and continue" button, or refuse these Cookies by clicking on the "Continue without accepting" button or by continuing your browsing. You can update your choice at any time by clicking on the link "Manage my cookies" at the bottom of the page. For more information, please consult our cookies policy.