clc r=40 s=20 D=0.025 l= D*r*s/sqrt(2) printf('Limiting length of offset = %f m',l)