play phryzby with physics

A Metre in Light-Years

solved Units

Q. A light-year is the distance light goes in a year. What is one metrel=1m in light-years?

metre1 m[L]light years?[L]Units
Inputs
l
1.00 m
Outputs
light yearsl?

How it's solved

Solved with Units

Given

  • l=1m

Find l.

Working
  1. l=1m=1.05700083×10−16ly
  2. l≈1.06×10−16lyto 3 significant figures
Conclusion

A light-year is a length, the distance light goes in a year, so one metre is a tiny fraction of it.

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_metre_in_light_years do4  kind :numerical5  describes "A light-year is the distance light goes in a year. What is %{metre} %{light_years}?"6  given metre: "1 m", as: "one metre"7  asks light_years: "in light-years"8end
solution.rb
1require_relative "../questions/a_metre_in_light_years"2require_relative "../science/units_and_measurement/units"34solve :a_metre_in_light_years, using: Units do5  take metre: :l6  take light_years: :l7  answer find_value(:light_years, in: "ly", figures: 3)89  conclusion "A light-year is a length, the distance light goes in a year, so one metre is a tiny " \10             "fraction of it."11end
playground.rb
1require_relative "../solutions/a_metre_in_light_years"23play_with :a_metre_in_light_years do4  title "A Metre in Light-Years"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