summaryrefslogtreecommitdiff
path: root/3840/CH3/EX3.2/Ex3_2.sce
blob: fa2ad196ede843547857f4519367a785eb04275f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
clear
//
//
//

//Variable declaration
d=0.282       //lattice spacing(nm)
theta=(8+(35/60))*%pi/180     //glancing angle(radian)
n=1           //order

//Calculation
lamda=2*d*sin(theta)/n    //wavelength of X-rays(nm)
n=2*d/lamda                    //maximum order of diffraction

//Result