You will write the functions that turn a pKa and a concentration into the pH. Then you will find how much of the acid is ionised.
The idea. . For mol/L of acid, is the positive root of .
Your tasks.
ka_from_pka(pka).hydrogen_ion(pka, c) using the quadratic formula.percent_ionised(pka, c).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…