You will compare measured pressures of a pair of liquids with Raoult's law, sort each composition as ideal, positive or negative, and decide whether the pair has an azeotrope. The pressures are invented for liquids A and B and are in kPa.
The idea. The deviation is . A maximum in the measured pressure inside the graph means a minimum-boiling azeotrope.
Your tasks.
deviation(x_a) so that it returns the percentage deviation at that composition.kind(x_a) so that it returns "positive" above Raoult's law by more than 2 %, "negative" below it by more than 2 %, and "ideal" otherwise.highest to the mole fraction with the largest measured pressure.has_azeotrope to True when that largest pressure is not at a pure liquid.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…