You will use a table of ion values. One function adds the ions of a salt. Another finds the limiting value of a weak acid from three strong electrolytes. The last two find the degree of dissociation and the acid constant.
The idea. . For a weak acid HA, . Then and .
Your tasks.
lam0(cation, anion, n_cation, n_anion) so that it adds the ions, using the table.weak_acid_lam0(hcl, salt, nacl) so that it returns the limiting value of the acid.alpha(lam, lam0_value) so that it returns the degree of dissociation.ka(c, a) so that it returns with the full formula.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…