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

//Variable declaration
lamdaB=0.92;    //wavelength(angstrom)
theta1=30;   //glancing angle(degree)
theta2=60;   //glancing angle(degree)

//Calculation
theta1=theta1*%pi/180;    //angle(radian)
theta2=theta2*%pi/180;    //angle(radian)
lamdaA=2*lamdaB*sin(theta1)/sin(theta1);    //wavelength of line A(angstrom)

//Result
printf("\n wavelength is %0.3f angstrom",lamdaA)
printf("\n answer in the book is wrong")