play phryzby with physics

A Share of the Sky

solved Units

Q. How much of the sky does a patch of area A cover, seen from r away?

area4 m²[L²]radius2 m[L]solid angle?Units
Inputs
A
4
r
2.00 m
Outputs
solid angle in steradiansΩ1

How it's solved

Solved with Units

Given

  • A, r yours to vary

Find Ω.

Working
  1. area over radius squaredΩ=Ar2
  2. Ω=422
  3. Ω=1
Conclusion

Its area over the square of how far away it is: Ω = A ⁄ r². Like the radian, the steradian is a pure number, and the whole sky around a point is 4π of them.

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 :share_of_the_sky do4  describes "%{solid_angle} does a patch of area %{area} cover, seen from %{radius} away?"5  given :area6  given :radius7  asks solid_angle: "How much of the sky"8end
solution.rb
1require_relative "../questions/share_of_the_sky"2require_relative "../science/units_and_measurement/units"34solve :share_of_the_sky, using: Units do5  take area: :A, radius: :r6  take solid_angle: :Omega7  find_value :solid_angle89  conclusion "Its area over the square of how far away it is: Ω = A ⁄ r². Like the radian, the " \10             "steradian is a pure number, and the whole sky around a point is 4π of them."11end
playground.rb
1require_relative "../solutions/share_of_the_sky"23play_with :share_of_the_sky do4  title "A Share of the Sky"56  input :A, 0.0..100.0, step: 0.5, default: 4.0, as: "area in square metres"7  input :r, 0.5..10.0, in: "m", step: 0.1, default: 2.0, as: "distance"89  output :Omega, as: "solid angle in steradians"10end
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