summaryrefslogtreecommitdiff
path: root/3869/CH7/EX7.10/Ex7_10.sce
blob: f5c46d8bf1aacb3e66762778be5a314a37f14b7a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
clear
//
//
//

//Variable declaration
h=1
k=1
l=0
lamda=0.065             //wavelength(nm)
n=2                     //order
a=0.26                  //axial length(nm)

//Calculation
x=n*lamda*sqrt(h**2+k**2+l**2)/(2*a)
theta=asin(x)*180/%pi       //glancing angle(degrees)

//Result
printf("\n glancing angle is %0.1f  degrees",theta)