You will write a model of the feedback loop of breathing. The carbon dioxide starts high, the rate of breathing rises, and the extra breaths wash carbon dioxide out.
The idea. The rate is 12 breaths a minute at a pCO of 40 mm Hg, and it rises by 1.5 breaths a minute for each 1 mm Hg above 40. In each minute, the pCO falls by 0.1 mm Hg for each breath above 12.
Your tasks.
rate_for. It gives the rate of breathing from the pCO.one_minute. It gives the pCO after one minute.minutes to the number of minutes until the pCO is mm Hg or less, starting from start.Have you tried it?
Do the tasks in the editor first, and run the checker after each one. Its hints help when a check fails. When you are ready, compare your code with this solution.
Log in to join the discussion.
Loading…
With Standard, you also open 12 more problems, 2 Python labs and 1 extra course. Everything you have used here stays free, always.