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

//Variable declaration
theta1=5+(23/60);   //glancing angle(degree)
theta2=7+(37/60);   //glancing angle(degree)
theta3=9+(25/60);   //glancing angle(degree)

//Calculation
theta1=theta1*%pi/180;    //angle(radian)
theta2=theta2*%pi/180;    //angle(radian)
theta3=theta3*%pi/180;    //angle(radian)
x1=sin(theta1);
X1=1/(10*x1);
x2=sin(theta2)/x1;
x3=sin(theta3)/x1;

//Result
printf("\n ratio of angles of incidence are %0.3f : %0.3f : %0.3f ",x1,x2,x3)
printf("\n the crystal is a simple cubic crystal")