summaryrefslogtreecommitdiff
path: root/3537/CH5/EX5.31/Ex5_31.sce
blob: ee3691321bb7d8fe83e7848da987ee89c8bd6d2a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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)