You will take the logarithms of a set of counts, compare before and after, and turn the slope of the log line into a doubling time. The checker uses the yeast culture of the lesson.
The idea. If , the count grows by a factor for each unit of , and it doubles every units.
Your tasks.
logs(values). Return the list of of each value.doubling_time(xs, ys). Fit a line to the logarithms and use its slope.predict(xs, ys, x). Predict on the log scale, then undo the logarithm.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…