You will write three functions about point charges. They use and .
The idea. Each charge is given as (q, x, y), with the charge in C and the position in m. The potential at a point is the sum of the potentials of all the charges. The energy of a group is the sum over every pair.
Your tasks.
potential, return the potential in V at a distance r from a point charge q.potential_at, return the total potential in V at the point (px, py) from every charge in the list.group_energy, return the potential energy of the whole group in J. Count each pair once.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…
With Standard, you also open 11 more problems, 2 Python labs and 1 extra course. Everything you have used here stays free, always.