summaryrefslogtreecommitdiff
path: root/1826/CH2/EX2.28/ex2_28.sce
diff options
context:
space:
mode:
Diffstat (limited to '1826/CH2/EX2.28/ex2_28.sce')
-rwxr-xr-x1826/CH2/EX2.28/ex2_28.sce12
1 files changed, 12 insertions, 0 deletions
diff --git a/1826/CH2/EX2.28/ex2_28.sce b/1826/CH2/EX2.28/ex2_28.sce
new file mode 100755
index 000000000..b84a7d4de
--- /dev/null
+++ b/1826/CH2/EX2.28/ex2_28.sce
@@ -0,0 +1,12 @@
+// Example 2.28, page no-47
+clear
+clc
+theta=22//in degrees
+d=1.8*10^-10//m
+n=1
+h=6.626*10^-34
+m=9.1*10^-31//kg
+e=1.6*10^-19//C
+lam=2*d*sin(theta*%pi/180)/n
+E=(1/(2*m))*(h/lam)^(2)
+printf("\nThe deBroglie wavelength of the neutron is %.3f *10^-10\nthe energy of the neutron is %.2f eV",lam*10^10,E/e)