You will write three functions about the force of a magnetic field on a wire. They use .
The idea. A straight wire at an angle to a uniform field feels . In a uniform field a bent wire feels the force of the straight wire between its ends. A rod hung on two threads in a field that points up swings out until .
Your tasks.
force_on_wire, return the force in N. The angle is in degrees.chord_length, points is a list of corners (x, y) of a bent wire, in m. Return the distance in m from the first point to the last. That is the effective length.hanging_angle, return the angle of the threads with the vertical, in degrees.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…