The population of healthy people is equal to 150, while the population of sick people is equal to 120. Every day, 20% of healthy people get sick and 10% of sick people get healthy. Please write a function in the Python programming language that will calculate at what proportion of healthy and sick people equilibrium will be reached.
First I tried to do 2 mathematical equations
H - healthy
C - sick
H_1 = 0.8H + 0.1C
C_2 = 0.9C + 0.2H
H_1 = 120 + 12 = 132
H_2 = 108 + 30 = 138
132:138
22:23
At what ratio will the equilibrium remain? Could you please help me with writing that function?
kate_washington is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
1