You will write three small functions about flux. They use and Gauss's law.
The idea. The flux of a uniform field through a flat surface is , with the angle with the normal. The net flux through a closed surface is , and only the charges inside count. Take .
Your tasks.
flat_flux, return the flux in N m²/C. The field E is in N/C, the area A in m², and angle is in degrees.net_flux, charges is a list of pairs (charge in nC, inside), where inside is True or False. Return the net flux in N m²/C. Count only the charges that are inside.charge_from_flux, return the net charge in nC that gives the net flux flux.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…