summaryrefslogtreecommitdiff
path: root/3869/CH2/EX2.20/Ex2_20.sce
blob: cf004ba32f10ae140bb4e0e5a36accb5c1d33943 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
clear
//
//
//

//Variable declaration
n=1                //order
a=1*10**-6         //slit width(m)
lamda=600*10**-9   //wavelength of spectral line(m)

//Calculation
theta=asin(n*lamda/a)*180/%pi       //angular separation(degrees)

//Result
printf("\n angular separation is %0.4f  degrees",theta)