diff options
Diffstat (limited to '3537/CH7/EX7.20/Ex7_20.sce')
-rw-r--r-- | 3537/CH7/EX7.20/Ex7_20.sce | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/3537/CH7/EX7.20/Ex7_20.sce b/3537/CH7/EX7.20/Ex7_20.sce new file mode 100644 index 000000000..beeb659a9 --- /dev/null +++ b/3537/CH7/EX7.20/Ex7_20.sce @@ -0,0 +1,9 @@ +//Example 7_20
+clc();
+clear;
+//To calculate the angle of refraction theta1 at the interface
+n1=1.55
+n2=1.6
+theta2=60 //units in degrees
+theta1=asin((n1*sin(theta2*%pi/180))/n2)*180/%pi
+printf("The angle of refraction is %.2f degrees",theta1)
|