min=0.4*(@sqrt(2*150^2+(65*@sqrt(2)+10)^2-2*(65*@sqrt(2)+10)*p))+p*(1+@exp(10-0.1*p^2))*@atan(p/@sqrt(2*150^2+(65*@sqrt(2)+10^2)-2*(65*@sqrt(2)+10)*p));
p^2-(65*@sqrt(2)-p)^2
min=0.4*(@sqrt(2*150^2+(65*@sqrt(2)+10)^2-2*(65*@sqrt(2)+10)*p))+p*(1+@exp(10-0.1*p^2))*@atan(p/@sqrt(2*150^2+(65*@sqrt(2)+10^2)-2*(65*@sqrt(2)+10)*p));
p^2-(65*@sqrt(2)-p)^2