clc //to calculate ratio of maximum intensity to minimum intensity //formula is I1/I2=a1^2/a2^2=100/1 //a1/a2=10/1 a1=10 //a1=10*a2 a2=1 disp("the ratio of maximum intensity to minmum intensity in the interference pattern Imax/Imin=((a1+a2)^2)/((a1-a2)^2)="+string(((a1+a2)^2)/((a1-a2)^2))+"unitless") //answer is given in terms of ratio in the book