You will write the period of three oscillators that are not simple pendulums.
The idea. Each one has a pull back in proportion to the displacement. A liquid column of length in a U-tube has . A body floating with depth under water has . A rod of length , hanging from a hole from its middle, has .
Your tasks.
period_u_tube, return the period of the liquid column, in s.period_float, return the period of the floating body, in s.period_rod, return the period of the rod, in s.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…