A Metre-Long Pendulum
Q. A pendulum 1 mm long swings on the Earth, where g is 9.81 m/s²m/s². How long does one swing there and back take, in seconds?
Inputs
Outputs
period?
How it's solved
Solved with DimensionalAnalysis
Given
- m
- m/s²
- from “assumed”
Assumed
- kg
Find .
Working
- assumed
- matching time
- matching length
- matching mass
- period as powers
Conclusion
The period grows as the square root of the length and shrinks as the square root of the pull, and the mass never enters.
The web of concepts
given read from the words equation asked
The Ruby that solves it
The question and its solution are small Ruby files. The engine runs them.
1require_relative "../physics"23question :a_metre_long_pendulum do4 kind :numerical5 describes "A pendulum %{length} long swings on the Earth, where g is %{gravity}. %{period}, in seconds?"6 given length: "1 m"7 given gravity: "9.81 m/s2"8 asks period: "How long does one swing there and back take"9end1require_relative "../questions/a_metre_long_pendulum"2require_relative "../science/units_and_measurement/dimensional_analysis"34solve :a_metre_long_pendulum, using: DimensionalAnalysis do5 take length: :l, gravity: :g6 assume m: "1 kg"7 assume k: 2 * pi8 take period: :T9 answer find_value(:period, in: "s")1011 conclusion "The period grows as the square root of the length and shrinks as the square root of " \12 "the pull, and the mass never enters."13endplayground.rb
1require_relative "../solutions/a_metre_long_pendulum"23play_with :a_metre_long_pendulum do4 title "A Metre-Long Pendulum"5endThe laws it drew on
| quantity | written | units | within | from |
|---|---|---|---|---|
| pi | — | 0 … ∞ | DimensionalAnalysis | |
| speed of light | m/s | — | DimensionalAnalysis | |
| length | m | — | DimensionalAnalysis | |
| gravity | m/s² | — | DimensionalAnalysis | |
| mass | kg | — | DimensionalAnalysis | |
| period | s | — | DimensionalAnalysis | |
| constant | — | — | DimensionalAnalysis | |
| power of length | — | — | DimensionalAnalysis | |
| power of gravity | — | — | DimensionalAnalysis | |
| power of mass | — | — | DimensionalAnalysis | |
| speed | m/s | 0 … ∞ | DimensionalAnalysis | |
| height | m | — | DimensionalAnalysis | |
| time | s | 0 … ∞ | DimensionalAnalysis | |
| acceleration | m/s² | — | DimensionalAnalysis | |
| start | m | — | DimensionalAnalysis | |
| starting speed | m/s | — | DimensionalAnalysis | |
| distance | m | — | DimensionalAnalysis | |
| rest mass | kg | — | DimensionalAnalysis | |
| kinetic energy | J | — | DimensionalAnalysis |