play phryzby with physics

Bending at 40°

solved Refraction

Q. Light in airμa=1 meets waterμw=1.33 at 40°θl(i)=40° to the normal. What is the angle of refraction?

airwaternormal

How it's solved

Solved with Refraction

Given

  • θl(i)=40°
  • μa=1 from “air”
  • μw=1.33 from “water”

Find θl(r).

Working
  1. snells law(incident, refracted)μa⋅sin⁡θl(i)=μw⋅sin⁡θl(r)
  2. 1⋅sin⁡40°=1.33⋅sin⁡θl(r)
  3. θl(r)=28.90°
Conclusion

Going into the denser medium the ray bends toward the normal, so it comes out at a smaller angle than it went in at.

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 :bending_at_forty do4  kind :scq5  describes "Light in air meets water at %{angle} to the normal. What is the angle of refraction?"6  given angle: "40 deg"78  option 28.9.deg9  option 40.0.deg10  option 58.77.deg11  option 50.0.deg12end
solution.rb
1require_relative "../questions/bending_at_forty"2require_relative "../science/ray_optics_and_optical_instruments/refraction"3require_relative "../science/ray_optics_and_optical_instruments/refractive_media"45solve :bending_at_forty, using: Refraction do6  objects :light, :air, :water7  light.goes(:incident, through: air)8  light.goes(:refracted, through: water, after: incident)9  take angle: light.angle_to_the_normal(during: incident)10  deduce_from "air", air.refractive_index => REFRACTIVE_MEDIA.fetch("air")11  deduce_from "water", water.refractive_index => REFRACTIVE_MEDIA.fetch("water")12  answer find_value(light.angle_to_the_normal(during: refracted), in: "deg")1314  conclusion "Going into the denser medium the ray bends toward the normal, so it comes out at a " \15             "smaller angle than it went in at."16end
playground.rb
1require_relative "../solutions/bending_at_forty"2require_relative "../pictures/light"34play_with :bending_at_forty do5  title "Bending at 40°"67  draw Light::Picture do8    media "air", "water"9    ray "incident", arriving_at: :i, angle: true, extended: true10  end11end
The laws it drew on
quantitywrittenunitswithinfrom
angle to the normalθ—0 … 1.571Incidence
angle of incidencei—0 … 1.571Incidence
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
refractive index of airμa——
angle to the normal of light during incidentθl(i)—0 … 1.571
refractive index of waterμw——
angle to the normal of light during refractedθl(r)—0 … 1.571
refractive index of lightμl——
i≡θi(before)
angle of incidence
rr≡θi(after)
angle of refraction
μ1≡μb
refractive index of first medium
μ2≡μa
refractive index of second medium
μa⋅sin⁡θl(i)=μw⋅sin⁡θl(r)
snells law(incident, refracted)
μa⋅sin⁡c=μw⋅sin⁡90°
snells law when grazing exit(incident, refracted)
rr=90°
grazing exit?
i>c
no refracted ray?
rr<i
bends toward the normal?
rr>i
bends away from the normal?