summaryrefslogtreecommitdiff
path: root/3875/CH11/EX11.3/11_3.sce
diff options
context:
space:
mode:
Diffstat (limited to '3875/CH11/EX11.3/11_3.sce')
-rw-r--r--3875/CH11/EX11.3/11_3.sce21
1 files changed, 13 insertions, 8 deletions
diff --git a/3875/CH11/EX11.3/11_3.sce b/3875/CH11/EX11.3/11_3.sce
index d3e675c34..289afcab9 100644
--- a/3875/CH11/EX11.3/11_3.sce
+++ b/3875/CH11/EX11.3/11_3.sce
@@ -5,13 +5,18 @@ tetha=45 //glancing angle in degree
//calculation
//case(1) when intensity maxima is 3
-n=3
-lambda=(2*d*sind(tetha))/n
-mprintf("\nThe wavelength is = %1.3f pm\n",lambda)
+n1=3
+lambda=(2*d*sind(tetha))/n1
+disp("case (1)")
+mprintf("The wavelength for n = %d is = %d pm\n",n1,ceil(lambda))
//case(2) when intensity maxima is 4
-n=4
-lambda=(2*d*sind(tetha))/n
-mprintf("The wavelength is = %1.3f pm",lambda)
-mprintf("Only for n=3 and n=4,the value of lambda lies within the range 95 pm to 140 pm")
-//The answer varies due to round off error.
+n2=4
+lambda=(2*d*sind(tetha))/n2
+disp("case (2)")
+mprintf("The wavelength for n = %d is = %1.1f pm\n",n2,lambda)
+////The answer varies due to round off error.
+
+
+mprintf("Only for n=%d and n=%d,the value of lambda lies within the range 95 pm to 140 pm. Hence Bragg reflections are observed only for these two wavelengths",n1,n2)
+