You will write two functions that add bond dipoles, then use the idea of full charges to find how ionic a bond is.
The idea. Two equal bond dipoles at an angle add to . In a flat molecule, each bond dipole has a size and a direction; add the parts and the parts, then take the length of the result. A charge at gives .
Your tasks.
two_bonds(m, angle) for two equal bond dipoles at angle degrees.flat_sum(bonds), where bonds is a list of (size, direction in degrees).ionic_pct, rounded to 1 place.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…