summaryrefslogtreecommitdiff
path: root/3845/CH25/EX25.2/Ex25_2.sce
diff options
context:
space:
mode:
Diffstat (limited to '3845/CH25/EX25.2/Ex25_2.sce')
-rw-r--r--3845/CH25/EX25.2/Ex25_2.sce8
1 files changed, 8 insertions, 0 deletions
diff --git a/3845/CH25/EX25.2/Ex25_2.sce b/3845/CH25/EX25.2/Ex25_2.sce
new file mode 100644
index 000000000..b1c77ec0f
--- /dev/null
+++ b/3845/CH25/EX25.2/Ex25_2.sce
@@ -0,0 +1,8 @@
+//Example 25.2
+n1=1;//Index of refraction for air
+theta1=30;//Incident angle (deg)
+theta2=22;//Angle of refraction (deg)
+n2=n1*sind(theta1)/sind(theta2);//Index of refraction for medium 2
+printf('Index of refraction for medium 2 = %0.2f',n2)
+//Openstax - College Physics
+//Download for free at http://cnx.org/content/col11406/latest