You will write functions that turn readings into a rate constant, first as if the reaction were zero order and then as if it were first order. Then a third function decides which order fits a set of readings.
The idea. For zero order, . For first order, . The law that fits gives almost the same at every time.
Your tasks.
k_zero(c0, c, t) so that it returns the rate constant of a zero order reaction.k_first(c0, c, t) so that it returns the rate constant of a first order reaction.order_of(times, concs) so that it returns 0 or 1, the order whose values stay closer together.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…