summaryrefslogtreecommitdiff
path: root/3537/CH5/EX5.31/Ex5_31.sce
diff options
context:
space:
mode:
Diffstat (limited to '3537/CH5/EX5.31/Ex5_31.sce')
-rw-r--r--3537/CH5/EX5.31/Ex5_31.sce18
1 files changed, 18 insertions, 0 deletions
diff --git a/3537/CH5/EX5.31/Ex5_31.sce b/3537/CH5/EX5.31/Ex5_31.sce
new file mode 100644
index 000000000..ee3691321
--- /dev/null
+++ b/3537/CH5/EX5.31/Ex5_31.sce
@@ -0,0 +1,18 @@
+//Example 5_31
+clc();
+clear;
+//To find the lattice parameter and atomic diameter
+lamda=0.171 //units in nm
+theta1=30 //units in degrees
+theta2=35.283 //units in degrees
+d100=lamda/(2*sin(theta1*%pi/180))
+d200=lamda/(2*sin(theta2*%pi/180))
+h=1
+k=1
+l=0
+alpha1=d100*sqrt(h^2+k^2+l^2)
+alpha2=d200*sqrt(h^2+k^2+l^2)
+printf("As alpha1 != alpha2 that is %.3f!=%.3f \tMetal is not bee",alpha1,alpha2)
+a=0.296 //units in nm
+diam=a/(sqrt(h^2+k^2+l^2))
+printf("\nAtomic diameter is a=%.2f nm",diam)