summaryrefslogtreecommitdiff
path: root/3648/CH22/EX22.4/Ex22_4.sce
diff options
context:
space:
mode:
Diffstat (limited to '3648/CH22/EX22.4/Ex22_4.sce')
-rw-r--r--3648/CH22/EX22.4/Ex22_4.sce9
1 files changed, 9 insertions, 0 deletions
diff --git a/3648/CH22/EX22.4/Ex22_4.sce b/3648/CH22/EX22.4/Ex22_4.sce
new file mode 100644
index 000000000..43b3c7fcb
--- /dev/null
+++ b/3648/CH22/EX22.4/Ex22_4.sce
@@ -0,0 +1,9 @@
+//Example 22_4
+clc();
+clear;
+//To find the angle at which the light emerge in to the air
+theta=37 //Units in degrees
+n1=1.33 //Units in constant
+n2=1 //Units in constant
+thetaa=asin((n1*sin(theta*%pi/180))/n2)*180/%pi //units in degrees
+printf("The angle at which the light emerges in air is theta=%d degrees",thetaa)