You will write the three small functions that grow a population in time steps: one exponential step, one logistic step, and a loop that runs the logistic steps for a given time.
The idea. In a step of , an exponential population grows by , and a logistic one by . A run repeats the step round(hours / dt) times and keeps every count.
Your tasks.
exp_step, return the count after one exponential step.logistic_step, return the count after one logistic step.run, return the list of counts from N0, one for each step, with N0 first.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…