blob: 73b7279761bf12091a311ab2c0bf330fa8d4fead (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
clear
//
//
//
//Variable declaration
lamda=0.12 //wavelength(nm)
n=2 //order
theta=28*%pi/180 //glancing angle(radian)
//Calculation
d=n*lamda/(2*sin(theta)) //interplanar spacing(nm)
//Result
printf("\n interplanar spacing is %0.2f nm",d)
|