diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /1847/CH4/EX4.5 | |
download | Scilab-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-x | 1847/CH4/EX4.5/Ch04Ex5.sce | 13 |
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
|