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 /1646/CH4/EX4.14 | |
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 '1646/CH4/EX4.14')
-rwxr-xr-x | 1646/CH4/EX4.14/Ch04Ex14.sce | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/1646/CH4/EX4.14/Ch04Ex14.sce b/1646/CH4/EX4.14/Ch04Ex14.sce new file mode 100755 index 000000000..17f6b676e --- /dev/null +++ b/1646/CH4/EX4.14/Ch04Ex14.sce @@ -0,0 +1,14 @@ +// Scilab Code Ex4.14 : Page-200 (2011)
+clc;clear;
+mu_R = 1.5230; // Refractive index for red wavelength
+mu_V = 1.5145; // Refractive index for violet wavelength
+R1 = 40; // Radius of curvature for red wavelength, cm
+R2 = -10; // Radius of curvature for violet wavelength, cm
+// As 1/f = (mu - 1)*(1/R1 - 1/R2), solving for fV and fR
+fV = 1/((mu_V-1)*(1/R1-1/R2)); // Focal length for violet wavelength, cm
+fR = 1/((mu_R-1)*(1/R1-1/R2)); // Focal length for violet wavelength, cm
+l = fR - fV; // Longitudinal chromatic aberration, cm
+printf("\nThe longitudinal chromatic aberration = %5.3f cm", abs(l));
+
+// Result
+// The longitudinal chromatic aberration = 0.253 cm
|