summaryrefslogtreecommitdiff
path: root/3669/CH14/EX14.9/9.sce
blob: 8cc75b28e10f81763d3ac059a737ed8f98910fc8 (plain)
1
2
3
4
5
6
7
8
9
10
11

//Variable declaration
lamda=500*10**-9;    //wavelength(m)
D=2;     //diameter(m)
beta=(5/100)*10**-2;     //fringe width(m)

//Calculation
d=lamda*D/beta;      //separation between slits(m)

//Result
printf('separation between slits is %0.3f   mm  \n',int(d*10**3))