blob: 8f5ebf42ef4ff4023acd5ad73aae8f53aed2b502 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
clear
//
//
//
//Variable declaration
lamda=1.54; //wavelength(angstrom)
theta=11; //glancing angle(degree)
//Calculation
theta=theta*%pi/180; //angle(radian)
d=lamda/(2*sin(theta)); //separation between lattice planes(angstrom)
//Result
printf("\n separation between lattice planes is %0.3f angstrom",d)
|