blob: c965a1a1989de6c3e6d9ef9e7f8e1edeaf607fe5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
clear
//
//
//
//Variable declaration
d=1.6 //lattice spacing(angstrom)
theta=90*%pi/180 //glancing angle(radian)
lamda=1.5 //wavelength of X-rays(angstrom)
//Calculation
n=2*d*sin(theta)/lamda //maximum order of diffraction
//Result
|