summaryrefslogtreecommitdiff
path: root/1847/CH4/EX4.5
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /1847/CH4/EX4.5
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 '1847/CH4/EX4.5')
-rwxr-xr-x1847/CH4/EX4.5/Ch04Ex5.sce13
1 files changed, 13 insertions, 0 deletions
diff --git a/1847/CH4/EX4.5/Ch04Ex5.sce b/1847/CH4/EX4.5/Ch04Ex5.sce
new file mode 100755
index 000000000..3b427e1dc
--- /dev/null
+++ b/1847/CH4/EX4.5/Ch04Ex5.sce
@@ -0,0 +1,13 @@
+// Scilab Code Ex4.5:: Page-4.7 (2009)
+clc; clear;
+mu = [1.33 1.65 1.55]; // Refractive indices of the material
+// As mu = tand(ip), solving for ip
+ip = atand(mu); // Brewster's law gives polarizing angle, degrees
+for i =1:1:3
+printf("\nmu = %4.2f, ip = %4.1f degrees", mu(i), ip(i));
+end
+
+// Result
+// mu = 1.33, ip = 53.1 degrees
+// mu = 1.65, ip = 58.8 degrees
+// mu = 1.55, ip = 57.2 degrees