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

//Variable declaration
d=3.035*10^-10;    //lattice spacing(m)
theta=12;   //glancing angle(degree)
n=1;   //order

//Calculation
theta=theta*%pi/180;    //angle(radian)
lamda=2*d*sin(theta)/n;    //wavelength(m)

//Result
printf("\n wavelength is %0.3f angstrom",lamda*10^10)