summaryrefslogtreecommitdiff
path: root/1847/CH4/EX4.3/Ch04Ex3.sce
blob: 57facf757dcef53e6c6178decb9fdc3e2fc56e5d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// Scilab Code Ex4.3:: Page-4.6 (2009)
clc; clear;
mu = 1.53;  // Refractive index of the material from Brewster's law 
// As mu = tand(ip), solving for ip
ip = atand(mu);     // Polarizing angle, degrees
// But mu = sind(ip)/sind(r), solving for r
r = asind(sind(ip)/mu);     // Angle of refraction, degrees

printf("\nThe angle of refraction of the ray = %4.1f degrees", r);

// Result 
// The angle of refraction of the ray = 33.2 degrees