play phryzby with physics

Into Air

solved Reflection · Refraction

Q. Light leaves a medium of index μ1 for airμ2=1 at 30°i=30°. Does every medium have its own angle?

waterairnormalincident30.0°reflectedrefracted41.7°critical 48.75°
Inputs
Outputs
critical anglec48.75°
angle of refractionrr41.68°
no refracted ray?no

How it's solved

Solved with Reflection, Refraction

Given

  • i=30°
  • μ2=1 from “air”
  • μ1 yours to vary

Find c, rr, whether there is no refracted ray.

Working
  1. snells law when grazing exitμ1⋅sin⁡c=μ2⋅sin⁡90°
  2. 1.33⋅sin⁡c=1⋅sin⁡90°
  3. c=48.75°
  4. snells lawμ1⋅sin⁡i=μ2⋅sin⁡rr
  5. 1.33⋅sin⁡30°=1⋅sin⁡rr
  6. rr=41.68°
  7. no refracted ray?i>cno
Conclusion

Every medium has one of its own, and the denser the medium the sooner it stops letting light out.

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 :into_air do4  describes "Light leaves a medium of index %{index} for air at %{angle}. Does every medium have %{critical_angle}?"5  given :index6  given angle: "30 deg"7  asks critical_angle: "its own angle"8end
solution.rb
1require_relative "../questions/into_air"2require_relative "../science/ray_optics_and_optical_instruments/reflection"3require_relative "../science/ray_optics_and_optical_instruments/refraction"4require_relative "../science/ray_optics_and_optical_instruments/refractive_media"56solve :into_air, using: [ Reflection, Refraction ] do7  take index: :mu_1, angle: :i8  deduce_from "air", mu_2: REFRACTIVE_MEDIA.fetch("air")9  take critical_angle: :c10  find_value :critical_angle11  find_value :r_r12  find_whether :no_refracted_ray?1314  conclusion "Every medium has one of its own, and the denser the medium the sooner it stops letting light out."15end
playground.rb
1require_relative "../solutions/into_air"2require_relative "../science/ray_optics_and_optical_instruments/refractive_media"3require_relative "../pictures/light"45play_with :into_air do6  title "Into Air"78  input :from, REFRACTIVE_MEDIA, default: "water"910  input(:mu_1) { from }1112  output :c13  output :r_r14  output :no_refracted_ray?, alarm: true1516  draw Light::Picture, rising: true do17    media :from, "air"18    ray "incident",  arriving_at: :i, angle: true19    ray "reflected", leaving_at:  :r_l20    ray "refracted", crossing_at: :r_r, angle: true, unless: :no_refracted_ray?21    mark "critical", arriving_at: :c22    note "all of it turns back", when: :no_refracted_ray?23  end24end
The laws it drew on
quantitywrittenunitswithinfrom
angle to the normalθ—0 … 1.571Incidence
angle of incidencei—0 … 1.571Incidence
angle of reflectionrl—0 … 1.571Reflection
refractive indexμ——Refraction
angle of refractionrr—0 … 1.571Refraction
refractive index of first mediumμ1——Refraction
refractive index of second mediumμ2——Refraction
critical anglec—0 … 1.571Refraction
i≡θi(before)
angle of incidence
rl≡θi(after)
angle of reflection
rr≡θi(after)
angle of refraction
μ1≡μb
refractive index of first medium
μ2≡μa
refractive index of second medium
i=rl
law of reflection
μ1⋅sin⁡i=μ2⋅sin⁡rr
snells law
μ1⋅sin⁡c=μ2⋅sin⁡90°
snells law when grazing exit
rr=90°
grazing exit?
i>c
no refracted ray?
rr<i
bends toward the normal?
rr>i
bends away from the normal?