You will write four functions about a short bar magnet and the field of the Earth.
The idea. A short magnet of moment has on its axis. The Earth's field has a horizontal part and a vertical part , with the dip . A magnet swinging a little has the period . Use SI units and angles in degrees.
Your tasks.
axial_field, return the field in tesla on the axis of a short magnet of moment m (A m²), at a distance r (m) from its centre. Use k = 1e-7.horizontal_part, return the horizontal part of the field, for a total field total and a dip dip in degrees.dip_angle, return the dip in degrees from the horizontal part and the vertical part. Use math.atan2 and math.degrees.period, return the period in s of a magnet with moment of inertia J, magnetic moment m and field B.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…