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

//Variable declaration
lamda=6000*10**-10      //wavelength(m)
a=12*10**-7             //slit width(m)

//Calculation
theta=asin(lamda/a)*180/%pi       //half angular width(degrees)

//Result
printf("\n half angular width is %0.0f  degrees",theta)