//Chapter-2,Example2_4_5,pg 2-26 m=2 //ofr second order principal maximum wavelength=5*10^-5 //wavelength of light angle=30 //ang of diaffraction N=sind(angle)/(m*wavelength) printf('\nNumber of lines per cm is N = %.f',N)