blob: 9865eebe37d042a06d0b686951c37dc15ad3ccfd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
clear
//
//
//
//Variable declaration
d=2 //diffraction observed(m)
lamda=500*10**-9 //wavelength(m)
a=1.5*10**-3 //slit width(m)
//Calculation
w=2*d*lamda/a //width of central maxima(m)
//Result
printf("\n width of central maxima is %0.2f mm",w*10**3)
|