blob: 35db1e508b2de24752140265674e9ffbda51d510 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
clc;
clear;
lambda=0.154 //wavelength in nm
theta1=20 //angle in degree
theta2=29 //angle in degree
h=1 //x intercept of parallel plane
k=1 //y intercept of parallel plane
l=0 //z intercept of parallel plane
//calculation
ratio=sind(theta1)^2/sind(theta2)^2 //ratio of sin^2 theta values of first and second angles
alpha=(lambda/2)*sqrt((sqrt(h^2+k^2+l^2))/sind(theta1)^2)
mprintf("The crystal structure is bcc since the ratio is %1.1f\n",ratio)
mprintf("The lattice constant alpha is = %0.3f nm\n",alpha) // The answer provided in the textbook is wrong
mprintf("The element is tungsten since this lattice constant of %0.3f nm and crystallizes in the bcc structure",alpha) //The answer provided in the textbook is wrong.Since there is no predefined method to determine the element,hence we do not know the element after answer varies.
|