summaryrefslogtreecommitdiff
path: root/3875/CH4/EX4.17/Ex4_17.sce
diff options
context:
space:
mode:
Diffstat (limited to '3875/CH4/EX4.17/Ex4_17.sce')
-rw-r--r--3875/CH4/EX4.17/Ex4_17.sce9
1 files changed, 5 insertions, 4 deletions
diff --git a/3875/CH4/EX4.17/Ex4_17.sce b/3875/CH4/EX4.17/Ex4_17.sce
index df7f1f6e7..65446a8b8 100644
--- a/3875/CH4/EX4.17/Ex4_17.sce
+++ b/3875/CH4/EX4.17/Ex4_17.sce
@@ -1,13 +1,14 @@
clc;
clear;
-f=4 //focal length of lens in m
+f=400 //focal length of lens in cm
myu=1.50 //refractive index
-lambda=5460*10^-10 //wavelength in m
+lambda=5460*10^-6 //wavelength in cm
n=5 //fifth bright ring
//calculation
R=(myu-1)*2*f //radius of curvature in cm
-D5=sqrt(2*(2*n-1)*lambda*R)
-mprintf("The diameter of the fifth bright ring is = %1.5f cm",D5)
+D5=sqrt(2*((2*n)-1)*lambda*R)
+
+mprintf("The diameter of the fifth bright ring is = %1.2f cm",D5)
//The answer provided in the textbook is wrong.