play phryzby with physics

Relative Refractive Index

solved Reflection · RelativeIndex

Q. Light meets a medium of index μ2 at 30°i=30°, and the two media's relative index is μ21. Do both numbers matter, or only what they come to?

surfacenormalincident30.0°reflectedrefracted41.8°critical 48.59°
Inputs
μ21
0.75
Outputs
critical anglec48.59°
angle of refractionrr41.81°
no refracted ray?no

How it's solved

Solved with Reflection, RelativeIndex

Given

  • i=30°
  • μ21, μ2 yours to vary

Assumed

  • μ1=1

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

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

Only what they come to. One file says so — mu_21 is mu_2 over mu_1 — and here the first medium is called 1, which leaves the second one standing for the pair.

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 :relative_refractive_index do4  describes "Light meets a medium of index %{index} at %{angle}, and the two media's relative index is " \5          "%{relative_index}. Do both numbers matter, or only %{refracted}?"6  given :relative_index7  given :index8  given angle: "30 deg"9  asks refracted: "what they come to"10end
solution.rb
1require_relative "../questions/relative_refractive_index"2require_relative "../science/ray_optics_and_optical_instruments/reflection"3require_relative "../science/ray_optics_and_optical_instruments/relative_index"45solve :relative_refractive_index, using: [ Reflection, RelativeIndex ] do6  take relative_index: :mu_21, index: :mu_2, angle: :i7  assume mu_1: 1.08  find_value :c9  take refracted: :r_r10  find_value :refracted11  find_whether :no_refracted_ray?1213  conclusion "Only what they come to. One file says so — mu_21 is mu_2 over mu_1 — and here the first medium is called 1, which leaves the second one standing for the pair."14end
playground.rb
1require_relative "../solutions/relative_refractive_index"2require_relative "../pictures/light"34RATIO = 0.25..4.056play_with :relative_refractive_index do7  title "Relative Refractive Index"89  input :mu_21, RATIO, default: 0.75, marks: { "critical" => 0.5, "alike" => 1.0 }1011  input(:mu_2) { mu_21 }1213  output :c14  output :r_r15  output :no_refracted_ray?, alarm: true1617  draw Light::Picture do18    surface across: :mu_2119    ray "incident",  arriving_at: :i, angle: true20    ray "reflected", leaving_at:  :r_l21    ray "refracted", crossing_at: :r_r, angle: true, unless: :no_refracted_ray?22    mark "critical", arriving_at: :c23    note "all of it turns back", when: :no_refracted_ray?24  end25end
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
relative refractive indexμ21——RelativeIndex
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
μ21=μ2μ1
relative index
rr=90°
grazing exit?
i>c
no refracted ray?
rr<i
bends toward the normal?
rr>i
bends away from the normal?