Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

When a ray of light passes from a region with an index of refraction n 1 into a region with a different index of refraction

When a ray of light passes from a region with an index of refraction n1 into a region with a different index of refraction n2, the light ray is bent. The angle at which the light is bent is given by Snells Law

where 1 is the angle of incidence of the light in the first region, and 2 is the angle of incidence of the light in the second region. Using Snells Law, it is possible to predict the angle of incidence of a light ray in Region 2 if the angle of incidence 1 in Region 1 and the indices of refraction n1 and n2 are known. The equation to perform this calculation is

2 = sin-1[n1/n2 sin 1]

Write a matlab program to calculate the angle of incidence (in degrees) of a light ray in Region 2 given the angle of incidence 1 in Region 1 and the indices of refraction n1 and n2. (Note: If n1>n2, then for some angles 1, the equation will have no real solution because the absolute value of the quantity [n1/n2 sin 1] will be greater than 1.0. when this occurs, all light is reflected back into Region 1, and no light passes into Region 2 at all. Your program must be able to recognize and properly handle this condition.)

The program should also create a plot showing the incident ray, the boundary between the two regions, and the refracted ray on the other side of the boundary.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Structured Search For Big Data From Keywords To Key-objects

Authors: Mikhail Gilula

1st Edition

012804652X, 9780128046524

More Books

Students also viewed these Databases questions