summaryrefslogtreecommitdiff
path: root/1826/CH2/EX2.26/ex2_26.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /1826/CH2/EX2.26/ex2_26.sce
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '1826/CH2/EX2.26/ex2_26.sce')
-rwxr-xr-x1826/CH2/EX2.26/ex2_26.sce13
1 files changed, 13 insertions, 0 deletions
diff --git a/1826/CH2/EX2.26/ex2_26.sce b/1826/CH2/EX2.26/ex2_26.sce
new file mode 100755
index 000000000..1ff572853
--- /dev/null
+++ b/1826/CH2/EX2.26/ex2_26.sce
@@ -0,0 +1,13 @@
+// Example 2.26, page no-46
+clear
+clc
+theta=27.5/2//in degrees
+a=0.563*10^-9
+n=1
+h=1
+k=1
+l=1
+d=a/sqrt(h^2+k^2+l^2)
+printf("\nThe lattice spacing for the plane (111) is %.2f * 10^-10 m",d*10^10)
+lam=2*d*sin(theta*%pi/180)/n
+printf("\nThe deBroglie wavelength of the neutrons is %.3f *10^-10 m",lam*10^10)