clc //to calculate ratio of intensity //I1/I2=1/25 //formula is a1/a2=sqrt(I1/I2)=1/5 a2=5 //a2=5*a1 a1=1 I=((1+5)^2)/((1-5)^2) disp("ratio of intensity at the maxima and minima in the interference pattern is Imax/Imin=((a1+a2)^2)/((a1-a2)^2)="+string(((a1+a2)^2)/((a1-a2)^2))+"unitless") //answer is given in terms of ratio