A uniform rod of mass and length can turn about an axis at right angles to it, anywhere along it. You will make the program find its moment of inertia for every position of the axis, check one value by adding up small pieces, and find where it doubles.
The idea. About the middle, . The parallel axis theorem moves the axis by : .
Your tasks.
I for every distance d of the axis from the middle.I about one end by cutting the rod into small pieces and adding for each.d in the list where I is closest to twice its smallest value.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…