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 /1871/CH6/EX6.15 | |
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 '1871/CH6/EX6.15')
-rwxr-xr-x | 1871/CH6/EX6.15/Ch06Ex15.sce | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/1871/CH6/EX6.15/Ch06Ex15.sce b/1871/CH6/EX6.15/Ch06Ex15.sce new file mode 100755 index 000000000..3dcf7f63c --- /dev/null +++ b/1871/CH6/EX6.15/Ch06Ex15.sce @@ -0,0 +1,29 @@ +// Scilab code Ex6.15: Pg:263 (2008)
+clc;clear;
+mu_O = 1.5443; // Refractive index for an ordinary beam
+mu_E = 1.5533; // Refractive index for an extra-ordinary beam
+t = 0.01436; // Thickness of the quartz plate, cm
+lambda = zeros(6); // Initialize lambda
+// As t = (2*n + 1)*lambda/(4*(mu_O - mu_E)) for quarter wave plate, solving for lambda
+printf("\nFor quarter wave in visible region the wavelengths are:\n");
+for n = 1:1:6
+lambda(n) = 4*(mu_E - mu_O)*t/(2*(n-1) + 1)*1e+008; // Wavelength for a quarter wave plate, cm
+if lambda(n) >= 3500 & lambda(n) <= 8000 then
+ printf("%d ansgtrom; ", ceil(lambda(n)));
+end
+end // for loop
+// As t = (2*n + 1)*lambda/(2*(mu_O - mu_E)) for half wave plate, solving for lambda
+printf("\n\nFor half wave in visible region the wavelengths are:\n");
+for n = 1:1:6
+lambda(n) = 2*(mu_E - mu_O)*t/(2*(n-1) + 1)*1e+008; // Wavelength for a half wave plate, cm
+if lambda(n) >= 3500 & lambda(n) <= 8000 then
+ printf("%d ansgtrom; ", ceil(lambda(n)));
+end
+end // for loop
+
+// Result
+// For quarter wave in visible region the wavelengths are:
+// 7386 ansgtrom; 5744 ansgtrom; 4700 ansgtrom;
+
+// For half wave in visible region the wavelengths are:
+// 5170 ansgtrom; 3693 ansgtrom;
\ No newline at end of file |