A Metre in Light-Years
Q. A light-year is the distance light goes in a year. What is one metrem in light-years?
Inputs
Outputs
light years?
How it's solved
Solved with Units
Given
- m
Find .
Working
- mly
- lyto 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.
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"8end1require_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."11endplayground.rb
1require_relative "../solutions/a_metre_in_light_years"23play_with :a_metre_in_light_years do4 title "A Metre in Light-Years"5endThe laws it drew on
| quantity | written | units | within | from |
|---|---|---|---|---|
| speed of light | m/s | — | Units | |
| avogadro constant | mol⁻¹ | — | Units | |
| length | m | 0 … ∞ | Units | |
| mass | kg | — | Units | |
| time | s | 0 … ∞ | Units | |
| electric current | A | — | Units | |
| temperature | K | — | Units | |
| amount of substance | mol | — | Units | |
| luminous intensity | cd | — | Units | |
| arc length | m | — | Units | |
| radius | m | 0 … ∞ | Units | |
| plane angle | — | — | Units | |
| area | m² | — | Units | |
| solid angle | — | — | Units | |
| light time | s | — | Units | |
| light distance | m | — | Units | |
| number of entities | — | — | Units | |
| baseline | m | — | Units | |
| distance away | m | — | Units | |
| parallax angle | — | — | Units |