You will write three functions for the field on the axis of a ring and for a dipole in a uniform field.
The idea. A ring has on its axis. A small dipole has on its axis. In a uniform field a dipole has the potential energy .
Your tasks.
ring_field, return the field on the axis of a ring, in N/C. The charge is q_nc in nC, and the radius radius and the distance z are in m.dipole_axis_field, return the field on the axis of a dipole of moment p (in C m) at a distance r (in m), in N/C. Use the formula for a point far away.dipole_energy, return the potential energy in J of a dipole of moment p (in C m) in a field field (in N/C), at an angle angle_deg in degrees to the field.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…