blob: ccb7010ed5e2c47175a20e6b59fed946489acb23 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
//Example 5_19
clc();
clear;
//To compute the cube edge of unit cell
n=1
lamda=1.54*10^-10 //units in meters
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)*10^10 //units in A
printf("Cube edge of unit cell a=%.2f A",a)
|