summaryrefslogtreecommitdiff
path: root/3869/CH7/EX7.3/Ex7_3.sce
blob: 3fbdfa483401d84ba95da449e79ae60d633056c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
clear
//
//
//

//Variable declaration
d=1.181         //lattice spacing(angstrom)
theta=90*%pi/180     //glancing angle(radian)
lamda=1.540     //wavelength of X-rays(angstrom)

//Calculation
n=2*d*sin(theta)/lamda    //order of diffraction                    

//Result
printf("\n order of diffraction is %0.3f  ",n)