summaryrefslogtreecommitdiff
path: root/3845/CH27/EX27.1/Ex27_1.sce
blob: 19dfb96beafddc617210883298eb307ce108745c (plain)
1
2
3
4
5
6
7
8
9
//Example 27.1
m=3;//Third-order constructive interference
d=0.01*10^-3;//Distance between slits (m)
theta=10.95;//Diffraction angle (deg)
lambda=d*sind(theta)/m;//Wavelength (m)
printf('Wavelength = %0.1f nm',lambda/10^-9)
//Answer varies due to round off error
//Openstax - College Physics
//Download for free at http://cnx.org/content/col11406/latest