I am extremely new to any coding and am having a lot of python issues (python 3). I am trying to recreate figures in a scientific paper relating to HIV. They have used a computer simulation of there model which I have to recreate. I keep changing aspects and keep getting different error messages - the current one is TypeError: odeint() missing 1 required positional argument: 't'
Here is the code I am using,based off of a previous assignment I did.
#Import necessary programmes
import numpy as np
from scipy.integrate import odeint as od
import matplotlib.pyplot as plt
#define equation for uninfected vs free virus
def free_virus(x,y,v,vm):
x=x=l-(d*x)-(b*x*v)-(bm*x*vm)
v=(k*y)-(u*v)
return np.array(x,v)
l=10
d=0.01
a=0.5
u=3
b=0.01
bm=0.005
e=0.0001
k=km=10
init= [0,0]
t= np.arange(0,40,5)
figure_1=od(free_virus,t,args=(0,40))
plt.plot(figure_1,t)
x and v are equations given in the scientific paper which I need to graph against one anotherodeint code:
The variables were given in the paper I'm sorry if this seems really basic but would really appreciate any help. This has been edited to add in my code.