summaryrefslogtreecommitdiff
path: root/1271/CH3/EX3.3/example3_3.sce
blob: fbacdb9834b1792c4fe72472378539f55b265fe9 (plain)
1
2
3
4
5
6
7
8
9
10
11
clc 
// Given that
mu_w = 1.33 // refractive index of water
mu_g = 1.54 // refractive index of glass
// Sample Problem 3 on page no. 3.24
printf("\n # PROBLEM 3 # \n")
Ip_1 = atan(mu_g / mu_w) * (180 / %pi)//calculation for polarizing angle for water
Ip_2 = atan(mu_w / mu_g) * (180 / %pi) // calculation for polarizing angle for glass
printf("Standard formula used \n mu=tan(Ip)\n")
printf("\n Polarizing angle for water to glass = %f degree,\n Polarizing angle for glass to water = %f degree",Ip_1,Ip_2)
printf("\n So polarizing angle is greater for a beam incident from water to glass")