summaryrefslogtreecommitdiff
path: root/3755/CH6/EX6.16/Ex6_16.sce
diff options
context:
space:
mode:
Diffstat (limited to '3755/CH6/EX6.16/Ex6_16.sce')
-rw-r--r--3755/CH6/EX6.16/Ex6_16.sce18
1 files changed, 18 insertions, 0 deletions
diff --git a/3755/CH6/EX6.16/Ex6_16.sce b/3755/CH6/EX6.16/Ex6_16.sce
new file mode 100644
index 000000000..55f4e0fbb
--- /dev/null
+++ b/3755/CH6/EX6.16/Ex6_16.sce
@@ -0,0 +1,18 @@
+clear
+//
+//
+//
+
+//Variable declaration
+h=6.62*10^-34; //planck's constant(J-sec)
+mn=1.67*10^-27; //mass of neutron(kg)
+k=1.38*10^-23; //boltzmann constant(eV/deg)
+T=300; //temperature(K)
+
+//Calculations
+E=k*T; //energy(J)
+p=sqrt(2*mn*E); //momentum
+d=h*10^10/p; //interplanar spacing(angstrom)
+
+//Result
+printf("\n interplanar spacing is %0.2f angstrom",d)