//Example 27.4 lambda=550*10^-9;//Wavelength (m) m2=2;//Order of interference theta2=45;//Angle for second diffraction minimum (deg) D=m2*lambda/sind(theta2);//Slit width (m) printf('a.Width of the slit = %0.2e m',D) m1=1;//Order of interference theta1=asind(m1*lambda/D);//Angle for first diffraction minimum (deg) printf('\nb.Angle for the first minimum produced = %0.1f deg',theta1) //Openstax - College Physics //Download for free at http://cnx.org/content/col11406/latest