Refraction: Water to Air
Q. Light in water meets air at . Which way does it bend coming out?
Inputs
Outputs
angle of refraction70.13°
no refracted ray?no
How it's solved
Solved with Refraction
Given
- from “water”
- from “air”
- yours to vary
Find , whether there is no refracted ray.
Working
- snells law
- snells law when grazing exit
- no refracted ray?no
Conclusion
It bends away from the normal instead, and far enough round there is no way across at all.
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 :water_to_air do4 describes "Light in water meets air at %{angle}. %{refracted}?"5 given :angle6 asks refracted: "Which way does it bend coming out"7end1require_relative "../questions/water_to_air"2require_relative "../science/ray_optics_and_optical_instruments/refraction"3require_relative "../science/ray_optics_and_optical_instruments/refractive_media"45solve :water_to_air, using: Refraction do6 take angle: :i7 deduce_from "water", mu_1: REFRACTIVE_MEDIA.fetch("water")8 deduce_from "air", mu_2: REFRACTIVE_MEDIA.fetch("air")9 take refracted: :r_r10 find_value :refracted11 find_whether :no_refracted_ray?1213 conclusion "It bends away from the normal instead, and far enough round there is no way across at all."14endplayground.rb
1require_relative "../solutions/water_to_air"2require_relative "../science/ray_optics_and_optical_instruments/refractive_media"3require_relative "../pictures/light"45play_with :water_to_air do6 title "Refraction: Water to Air"78 input :i, default: 45.deg910 output :r_r11 output :no_refracted_ray?, alarm: true1213 draw Light::Picture, rising: true do14 media "water", "air"15 ray "incident", arriving_at: :i, angle: true, extended: true16 ray "refracted", crossing_at: :r_r, angle: true, unless: :no_refracted_ray?17 note "no refracted ray", when: :no_refracted_ray?18 end19endThe laws it drew on
| quantity | written | units | within | from |
|---|---|---|---|---|
| angle to the normal | — | 0 … 1.571 | Incidence | |
| angle of incidence | — | 0 … 1.571 | Incidence | |
| 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 |