diff options
Diffstat (limited to '1271/CH2/EX2.9')
-rwxr-xr-x | 1271/CH2/EX2.9/9.txt | 1 | ||||
-rwxr-xr-x | 1271/CH2/EX2.9/example2_9.sce | 10 |
2 files changed, 11 insertions, 0 deletions
diff --git a/1271/CH2/EX2.9/9.txt b/1271/CH2/EX2.9/9.txt new file mode 100755 index 000000000..6f6e233d5 --- /dev/null +++ b/1271/CH2/EX2.9/9.txt @@ -0,0 +1 @@ + Focal length in second case = 1.200000 meter
\ No newline at end of file diff --git a/1271/CH2/EX2.9/example2_9.sce b/1271/CH2/EX2.9/example2_9.sce new file mode 100755 index 000000000..a7d137967 --- /dev/null +++ b/1271/CH2/EX2.9/example2_9.sce @@ -0,0 +1,10 @@ +clc +// Given that +lambda1 = 6e-7 // wavelength of first light in meter +lambda2 = 5e-7 // wavelength of second light in meter +f1 = 1 // focal length in first case in meter +// Sample Problem 9 on page no. 2.41 +printf("\n # PROBLEM 9 # \n") +f2 = (lambda1 * f1) / lambda2 // calculation for focal length in second case +printf("\n Standard formula used \n f2 = (lambda1 * f1) / lambda2") +printf("\n Focal length in second case = %f meter",f2) |