You will write three functions for the fields that Gauss's law gives. Use .
The idea. A long wire with a charge on each metre has . A large sheet with a charge on each square metre has . A solid insulating ball of radius with a total charge has inside and outside.
Your tasks.
wire_field, return the field in N/C. lam is in nC/m and r is in m.sheet_field, return the field in N/C. sigma is in nC/m².ball_field, return the field in N/C. Q is in nC, and R and r are in m. It must work for a point inside the ball and for a point outside it.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…