summaryrefslogtreecommitdiff
path: root/3411/CH5/EX5.10/Ex5_10.sce
diff options
context:
space:
mode:
Diffstat (limited to '3411/CH5/EX5.10/Ex5_10.sce')
-rw-r--r--3411/CH5/EX5.10/Ex5_10.sce14
1 files changed, 14 insertions, 0 deletions
diff --git a/3411/CH5/EX5.10/Ex5_10.sce b/3411/CH5/EX5.10/Ex5_10.sce
new file mode 100644
index 000000000..870847749
--- /dev/null
+++ b/3411/CH5/EX5.10/Ex5_10.sce
@@ -0,0 +1,14 @@
+//Example 5_10
+clc();
+clear;
+//To calculate the lattice constant
+h=6.63*10^-34 //Plancks Constant
+m=1.804*10^-27
+KB=1.38*10^-23
+T=300
+lamda=h/sqrt(3*m*KB*T) //units in mts
+n=2
+a=(sqrt(3)*lamda)/2 //units in mts
+printf("Lattice constant a=");
+disp(a);
+printf("mts")