You will write three functions that do the bookkeeping of an equilibrium.
The idea. For , . The same expression for any mixture gives . If the reaction goes forward; if it goes backward. Also, .
Your tasks.
quotient, return for the four concentrations.direction, return "forward", "backward" or "equilibrium". Treat the two as equal if they differ by less than 0.1 %.kp_from_kc, return , with L bar K mol.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 4 more problems, 1 Python lab and 1 extra course. Everything you have used here stays free, always.