summaryrefslogtreecommitdiff
path: root/3869/CH7/EX7.11/Ex7_11.sce
blob: 57250e6c2c3a6fcbe42171abc4074cce6242f3b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
clear
//
//
//

//Variable declaration
h=1
k=1
l=1
lamda=1.54         //wavelength(angstrom)
n=1                        //order
theta=19.2*%pi/180     //glancing angle(radian)

//Calculation
d=n*lamda/(2*sin(theta))     
a=d*sqrt(h**2+k**2+l**2)     //cube edge of unit cell(angstrom)

//Result
printf("\n cube edge of unit cell is %0.3f  angstrom",a)