summaryrefslogtreecommitdiff
path: root/3845/CH25/EX25.3
diff options
context:
space:
mode:
Diffstat (limited to '3845/CH25/EX25.3')
-rw-r--r--3845/CH25/EX25.3/Ex25_3.sce8
1 files changed, 8 insertions, 0 deletions
diff --git a/3845/CH25/EX25.3/Ex25_3.sce b/3845/CH25/EX25.3/Ex25_3.sce
new file mode 100644
index 000000000..e74eddf9f
--- /dev/null
+++ b/3845/CH25/EX25.3/Ex25_3.sce
@@ -0,0 +1,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