You will test the model of the contraction against the measured radii. A function gives the effective charge after a number of steps from lanthanum. Another gives the model radius, and a third finds the worst error. The last scans the shielding constant to find the value that fits best.
The idea. after steps. The model radius is in pm. The best is the one with the smallest worst error.
Your tasks.
z_eff(i, s).model_radius(i, s).worst_error(s) so that it returns the largest difference, in pm, between the model and the measured radii over all 15 ions.best_shielding() so that it tries s from 0.70 to 1.00 in steps of 0.01 and returns the one with the smallest worst error.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…