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

//Variable declaration
d=0.842*10^-10;    //lattice spacing(m)
theta1=8+(35/60);   //glancing angle(degree)
n1=1;   //order
n2=3;   //order

//Calculation
theta1=theta1*%pi/180;    //angle(radian)
theta3=asin(n2*sin(theta1));      //glancing angle(radian)
theta3=theta3*180/%pi ;       //glancing angle(degree)

//Result
printf("\n glancing angle is %0.3f degree",theta3)