play phryzby with physics

A Pendulum That Ticks Seconds

solved SimplePendulum

Q. Taking g as 9.8 m/s²ge=9.8m/s², what is the length of a simple pendulum, which ticks secondsTp=2s, in metres?

L = ?T = 2 sg on earth = 9.8 m/s²
Inputs
ge
9.8 m/s²
Outputs
lengthLp?

How it's solved

Solved with SimplePendulum

Given

  • ge=9.8m/s²
  • Tp=2s from “ticks seconds”

Find Lp.

Working
  1. period of a simple pendulum(pendulum)Tp=2⋅π⋅Lpge
  2. 2=2⋅3.14159265⋅Lp9.8
  3. Lp=0.99 m
  4. Lp≈0.99mto 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.

question.rb
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"8end
solution.rb
1require_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."17end
playground.rb
1require_relative "../solutions/a_pendulum_that_ticks_seconds"23play_with :a_pendulum_that_ticks_seconds do4  title "A Pendulum That Ticks Seconds"5end
The laws it drew on
quantitywrittenunitswithinfrom
piπ—0 … ∞SimplePendulum
surface gravitygm/s²—SimplePendulum
length of the stringLm—SimplePendulum
periodTs—SimplePendulum
period of pendulumTps—
length of the string of pendulumLpm—
surface gravity of earthgem/s²—
length of the string of earthLem—
period of earthTes—
surface gravity of pendulumgpm/s²—
Tb=2⋅π⋅Lbgg
period of a simple pendulum
Tp=2⋅π⋅Lpge
period of a simple pendulum(pendulum)