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.10 | |
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.10')
-rwxr-xr-x | 1646/CH4/EX4.10/Ch04Ex10.sce | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/1646/CH4/EX4.10/Ch04Ex10.sce b/1646/CH4/EX4.10/Ch04Ex10.sce new file mode 100755 index 000000000..70b0e4960 --- /dev/null +++ b/1646/CH4/EX4.10/Ch04Ex10.sce @@ -0,0 +1,20 @@ +// Scilab Code Ex4.10: Page-197
+clc;clear;
+w1 = 0.02;....// Magnitude of the dispersive power of first lens
+w2 = 0.04;....// Magnitude of the dispersive power of second lens
+// Let 1/f1 = x and 1/f2 = y, then
+// The condition for achromatic combination of two lenses, w1/f1 + w2/f2 = 0 => w1*x + w2*y = 0 --- (I)
+F = 20;....// Given focal length of achromatic doublet, cm
+// Also F = 1/f1 + 1/f2 => F = x + y ---- (II)
+A = [w1 w2; 1 1]; // Square matrix
+B = [0;1/F]; // Column vector
+X = inv(A)*B; // Characteristic roots of the simultaneous equations, cm
+f1 = 1/X(1); // Focal length of convex lens, cm
+f2 = 1/X(2); // Focal length of concave lens, cm
+
+printf("\nThe focal length of convex lens = %2d cm", ceil(f1));
+printf("\nThe focal length of concave lens = %2d cm", ceil(f2));
+
+// Result
+// The focal length of convex lens = 10 cm
+// The focal length of concave lens = -20 cm
|