summaryrefslogtreecommitdiff
path: root/2780/CH2/EX2.24/Ex2_24.sce
diff options
context:
space:
mode:
Diffstat (limited to '2780/CH2/EX2.24/Ex2_24.sce')
-rwxr-xr-x2780/CH2/EX2.24/Ex2_24.sce8
1 files changed, 8 insertions, 0 deletions
diff --git a/2780/CH2/EX2.24/Ex2_24.sce b/2780/CH2/EX2.24/Ex2_24.sce
new file mode 100755
index 000000000..255578be2
--- /dev/null
+++ b/2780/CH2/EX2.24/Ex2_24.sce
@@ -0,0 +1,8 @@
+clc
+//to calculate refractive index of the liquid
+n=6
+lambda=6000*10^-10 //wavelength in m
+R=1 //radius of curvature of the curved surface in m
+Dn=3.1*10^-3 //diameter of 6th bright ring in m
+mu=2*(2*n-1)*lambda*R/Dn^2
+disp("the refractive index of the liquid is mu="+string(mu)+"unitless")