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.7/Ch04Ex7.sce | |
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.7/Ch04Ex7.sce')
-rwxr-xr-x | 1847/CH4/EX4.7/Ch04Ex7.sce | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/1847/CH4/EX4.7/Ch04Ex7.sce b/1847/CH4/EX4.7/Ch04Ex7.sce new file mode 100755 index 000000000..6c556b9fd --- /dev/null +++ b/1847/CH4/EX4.7/Ch04Ex7.sce @@ -0,0 +1,17 @@ +// Scilab Code Ex4.7:: Page-4.8 (2009)
+clc; clear;
+E0 = 1; // For simplicity assume maximum intensity through polarizer and analyser to be unity, unit
+light_fraction = [0.25 0.45 0.65 0.75 0.0];
+for i = 1:1:5
+E = light_fraction(i)*E0; // Light fraction of the maximum intensity, unit
+// From Malus law, E = E0*cosd(theta)^2, solving for theta
+theta = acosd(sqrt(E)); // Angle through which analyser should be rotated, degrees
+printf("\nE = %4.2fE0, theta = %4.1f degrees", light_fraction(i), theta);
+end
+
+// Result
+// E = 0.25E0, theta = 60.0 degrees
+// E = 0.45E0, theta = 47.9 degrees
+// E = 0.65E0, theta = 36.3 degrees
+// E = 0.75E0, theta = 30.0 degrees
+// E = 0.00E0, theta = 90.0 degrees
|