diff options
Diffstat (limited to '2780/CH2/EX2.23/Ex2_23.sce')
-rwxr-xr-x | 2780/CH2/EX2.23/Ex2_23.sce | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/2780/CH2/EX2.23/Ex2_23.sce b/2780/CH2/EX2.23/Ex2_23.sce new file mode 100755 index 000000000..4fe4a4447 --- /dev/null +++ b/2780/CH2/EX2.23/Ex2_23.sce @@ -0,0 +1,10 @@ +clc
+//to calculate wavelength of the light
+D15=0.590*10^-2 //diamater of 15th ring in m
+D5=0.336*10^-2 //diameter of 5th ring in m
+p=10
+R=1 //radius of plano convex lens in m
+//formula is lambda=Dn+p^2-Dn^2/4pR
+lambda=((D15^2)-(D5^2))/(4*p*R)
+disp("the wavelength of the monochromatic light is lambda="+string(lambda)+"m")
+
|