blob: 220138a82fd4c7dee902f6603e79c7938f56f0b1 (
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)
x=5*10**-3 //width of central maxima(m)
//Calculation
a=d*lamda/x //slit width(m)
//Result
printf("\n slit width is %0.3f mm",a*10**3)
|