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

//Variable declaration
lamda1=5016*10**-8      //wavelength(cm)
lamda2=5048*10**-8      //difference in wavelength(cm)
k=2                     //order
n=15000                 //number of lines/inch

//Calculation
e=2.54/n                
theta1=asin(2*lamda1/e)*180/%pi    //angle for 1st wavelength(degrees)            
theta2=asin(2*lamda2/e)*180/%pi    //angle for 2nd wavelength(degrees)            
theta=int(60*(theta2-theta1))        //angle of separation(minutes)

//Result
printf("\n angle of separation is %0.3f  minutes",theta)