A Pendulum That Ticks Seconds
Q. Taking g as 9.8 m/s²m/s², what is the length of a simple pendulum, which ticks secondss, in metres?
Inputs
Outputs
length?
How it's solved
Solved with SimplePendulum
Given
- m/s²
- s from “ticks seconds”
Find .
Working
- period of a simple pendulum(pendulum)
- mto 2 significant figures
Conclusion
A pendulum that ticks once a second swings there and back in two, and that period fixes its length: about a metre.
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_pendulum_that_ticks_seconds do4 kind :numerical5 describes "Taking g as %{gravity}, %{length}, in metres?"6 given gravity: "9.8 m/s2"7 asks length: "what is the length of a simple pendulum, which ticks seconds"8end1require_relative "../questions/a_pendulum_that_ticks_seconds"2require_relative "../science/oscillations/simple_pendulum"34solve :a_pendulum_that_ticks_seconds, using: SimplePendulum do5 objects :earth6 object :pendulum, on: earth78 take gravity: earth.surface_gravity910 deduce_from "ticks seconds", pendulum.period => "2 s"1112 length = pendulum.length_of_the_string13 answer length:, in: "m", figures: 21415 conclusion "A pendulum that ticks once a second swings there and back in two, and that period fixes " \16 "its length: about a metre."17endplayground.rb
1require_relative "../solutions/a_pendulum_that_ticks_seconds"23play_with :a_pendulum_that_ticks_seconds do4 title "A Pendulum That Ticks Seconds"5endThe laws it drew on
| quantity | written | units | within | from |
|---|---|---|---|---|
| pi | — | 0 … ∞ | SimplePendulum | |
| surface gravity | m/s² | — | SimplePendulum | |
| length of the string | m | — | SimplePendulum | |
| period | s | — | SimplePendulum | |
| period of pendulum | s | — | ||
| length of the string of pendulum | m | — | ||
| surface gravity of earth | m/s² | — | ||
| length of the string of earth | m | — | ||
| period of earth | s | — | ||
| surface gravity of pendulum | m/s² | — |