clc // Displacement due to angular error= l sin a // Displacement due to linear error= l/r // these two are equal a=1.5 r= 1/sind(a) printf('The offset should be measured with an accuracy of 1 in %i ',r+1)