play phryzby with physics

Sunlight on Its Way

solved Units

Q. Suppose the unit of length were the distance light goes in one secondc=1m/s. Sunlight takes 8 minutes 20 secondstlight=500s to reach us. How far is the Sun in that unit?

distance?[L]Units
Outputs
distancedlight?

How it's solved

Solved with Units

Given

  • c=1m/s from “the distance light goes in one second”
  • tlight=500s from “8 minutes 20 seconds”

Find dlight.

Working
  1. distance at light speeddlight=c⋅tlight
  2. dlight=1⋅500
  3. dlight=500m
  4. dlight≈500mto 3 significant figures
Conclusion

Choose light's own travel as the unit of length and its speed becomes one, so a distance and its travel time are the same number.

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 :sunlight_on_its_way do4  kind :numerical5  describes "Suppose the unit of length were the distance light goes in one second. Sunlight takes 8 minutes 20 seconds to reach us. %{distance}?"6  asks distance: "How far is the Sun in that unit"7end
solution.rb
1require_relative "../questions/sunlight_on_its_way"2require_relative "../science/units_and_measurement/units"34solve :sunlight_on_its_way, using: Units do5  deduce_from "the distance light goes in one second", c: 1.06  deduce_from "8 minutes 20 seconds", t_light: "500 s"7  take distance: :d_light8  answer find_value(:distance, figures: 3)910  conclusion "Choose light's own travel as the unit of length and its speed becomes one, so a " \11             "distance and its travel time are the same number."12end
playground.rb
1require_relative "../solutions/sunlight_on_its_way"23play_with :sunlight_on_its_way do4  title "Sunlight on Its Way"5end
The laws it drew on
quantitywrittenunitswithinfrom
speed of lightcm/s—Units
avogadro constantNAmol⁻¹—Units
lengthlm0 … ∞Units
massmkg—Units
timets0 … ∞Units
electric currentIA—Units
temperatureTK—Units
amount of substancenmol—Units
luminous intensityIvcd—Units
arc lengthsm—Units
radiusrm0 … ∞Units
plane angleθ——Units
areaAm²—Units
solid angleΩ——Units
light timetlights—Units
light distancedlightm—Units
number of entitiesN——Units
baselineBm—Units
distance awayDm—Units
parallax angleθp——Units
θ=sr
arc over radius
Ω=Ar2
area over radius squared
dlight=c⋅tlight
distance at light speed
N=n⋅NA
entities in moles
θp=BD
baseline over distance