summaryrefslogtreecommitdiff
path: root/1871/CH3/EX3.15
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /1871/CH3/EX3.15
downloadScilab-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/CH3/EX3.15')
-rwxr-xr-x1871/CH3/EX3.15/Ch03Ex15.sce16
1 files changed, 16 insertions, 0 deletions
diff --git a/1871/CH3/EX3.15/Ch03Ex15.sce b/1871/CH3/EX3.15/Ch03Ex15.sce
new file mode 100755
index 000000000..57dad4b78
--- /dev/null
+++ b/1871/CH3/EX3.15/Ch03Ex15.sce
@@ -0,0 +1,16 @@
+// Scilab code Ex3.15 : Pg:117 (2008)
+clc;clear;
+omega1 = 0.01; // Dispersive power of the crown glass convex lens
+omega2 = 0.02; // Dispersive power of flint glass plano-convex lens
+f1 = 20; // Focal length of crown glass lens, cm
+f2 = 30; // Focal length of crown flint lens, cm
+d = (omega1*f2+omega2*f1)/(omega1 + omega2); // The distance between two achromatic lenses of different material, cm
+// For same material
+printf("\nThe distance between two achromatic lenses of different material = %5.2f cm", d);
+omega1 = 1, omega2 = 1;
+d = (omega1*f2+omega2*f1)/(omega1 + omega2); // The distance between two achromatic lenses of same material, cm
+printf("\nThe distance between two achromatic lenses of same material = %2.0f cm", d);
+
+// Result
+// The distance between two achromatic lenses of different material = 23.33 cm
+// The distance between two achromatic lenses of same material = 25 cm \ No newline at end of file