Snell's Law
Snell's Law
When light travels from one transparent medium into another, it changes direction. This bending of light at an interface is called refraction, and the relationship between the angles is described by Snell's Law.
The Law
Where:
- is the refractive index of the first medium
- is the refractive index of the second medium
- is the angle of incidence (measured from the normal)
- is the angle of refraction (measured from the normal)
Refractive Index
The refractive index of a medium is defined as the ratio of the speed of light in vacuum to the speed of light in that medium:
| Medium | Refractive Index |
|---|---|
| Vacuum | 1.000 |
| Air | ~1.0003 |
| Water | 1.333 |
| Glass (typical) | 1.5 |
| Diamond | 2.42 |
Solving for the Refracted Angle
Rearranging Snell's Law to find :
Critical Angle and Total Internal Reflection
When light moves from a denser medium () to a less dense medium, at a certain angle the refracted ray runs along the boundary. This is the critical angle :
For angles of incidence greater than , no light escapes — this is total internal reflection, the principle behind optical fibers and diamond sparkle.
Your Task
Implement the two functions below using math.asin, math.sin, math.degrees, and math.radians.