Into Air
Q. Light leaves a medium of index for air at 30°. Does every medium have its own angle?
Inputs
Outputs
critical angle48.75°
angle of refraction41.68°
no refracted ray?no
How it's solved
Solved with Reflection, Refraction
Given
- from “air”
- yours to vary
Find , , whether there is no refracted ray.
Working
- snells law when grazing exit
- snells law
- no refracted ray?no
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.
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"8end1require_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."15endplayground.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 end24endThe laws it drew on
| quantity | written | units | within | from |
|---|---|---|---|---|
| angle to the normal | — | 0 … 1.571 | Incidence | |
| angle of incidence | — | 0 … 1.571 | Incidence | |
| angle of reflection | — | 0 … 1.571 | Reflection | |
| refractive index | — | — | Refraction | |
| angle of refraction | — | 0 … 1.571 | Refraction | |
| refractive index of first medium | — | — | Refraction | |
| refractive index of second medium | — | — | Refraction | |
| critical angle | — | 0 … 1.571 | Refraction |