summaryrefslogtreecommitdiff
path: root/3845/CH25/EX25.3/Ex25_3.sce
blob: e74eddf9f13b976457a2c5f85ecc9fff6e9588fb (plain)
1
2
3
4
5
6
7
8
//Example 25.3
n1=1;//Index of refraction for air
n2=2.419;//Index of refraction for diamond, See Table 25.1
theta1=30;//Incident angle (deg)
theta2=asind(n1*sind(theta1)/n2);//Angle of refraction (deg)
printf('Angle of refraction = %0.1f deg',theta2)
//Openstax - College Physics
//Download for free at http://cnx.org/content/col11406/latest