summaryrefslogtreecommitdiff
path: root/3648/CH22/EX22.4
diff options
context:
space:
mode:
Diffstat (limited to '3648/CH22/EX22.4')
-rw-r--r--3648/CH22/EX22.4/Ex22_4.sce9
-rw-r--r--3648/CH22/EX22.4/Ex22_4.txt1
2 files changed, 10 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)
diff --git a/3648/CH22/EX22.4/Ex22_4.txt b/3648/CH22/EX22.4/Ex22_4.txt
new file mode 100644
index 000000000..71df35dec
--- /dev/null
+++ b/3648/CH22/EX22.4/Ex22_4.txt
@@ -0,0 +1 @@
+The angle at which the light emerges in air is theta=53 degrees \ No newline at end of file