summaryrefslogtreecommitdiff
path: root/1619/CH1/EX1.7.3
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /1619/CH1/EX1.7.3
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '1619/CH1/EX1.7.3')
-rwxr-xr-x1619/CH1/EX1.7.3/Example1_7_3.sce21
1 files changed, 21 insertions, 0 deletions
diff --git a/1619/CH1/EX1.7.3/Example1_7_3.sce b/1619/CH1/EX1.7.3/Example1_7_3.sce
new file mode 100755
index 000000000..ff6686f17
--- /dev/null
+++ b/1619/CH1/EX1.7.3/Example1_7_3.sce
@@ -0,0 +1,21 @@
+// Example 1.7.3 page 1.15
+// To find RI of glass
+// To find the critical angle for glass...
+
+clc;
+clear;
+phi1 = 33 // Angle of incidence..
+phi2 = 90 //Angle of refraction..
+// According to Snell's law...
+// n1*sin(phi1)= n2*sin(phi2);
+//a = sin(phi1*%pi/(180));
+// Assume n1 is the RI of glass and n2 is RI of air
+n2= 1;
+n1 = sind(90)/sind(33);
+printf('The Refractive Index is %.2f',n1);
+
+// To calculate thre critical angle...
+n1 = 1.836; // From above rounded off to 3 decimal points...
+phiC = asind((n2/n1)*sind(90));
+phiC=asind(0.54);
+printf('\n\nThe Critical angel is %.2f degrees',phiC);