diff options
Diffstat (limited to '3537/CH5/EX5.20/Ex5_20.sce')
-rw-r--r-- | 3537/CH5/EX5.20/Ex5_20.sce | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/3537/CH5/EX5.20/Ex5_20.sce b/3537/CH5/EX5.20/Ex5_20.sce new file mode 100644 index 000000000..90a367514 --- /dev/null +++ b/3537/CH5/EX5.20/Ex5_20.sce @@ -0,0 +1,15 @@ +//Example 5_20
+clc();
+clear;
+//To compute the cube edge of unit cell
+n=1
+lamda=1.54*10^-10 //units in m
+theta=19.2 //units in degrees
+d=(n*lamda)/(2*sin(theta*%pi/180))
+h=1
+k=1
+l=1
+a=d*sqrt(h^2+k^2+k^2)
+printf("Cube edge of unit cell a=")
+disp(a)
+printf("meters")
|