blob: e47d23cb0ee6b750ec72ae2ea8167bd031ec61db (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
// Example 1.6
// To find refractive index of of the glass
// Page no.25
clc;
clear;
// Given data
phi=0.7297; // Critical angle for glass-air interface
n2=1; // Refractive index of air
n1=n2/sin(phi); // Refractive index of glass
// Displaying the result in command window
printf('\n Refractive index of the glass = %0.1f',n1);
|