minimize ((1 - cos(x))^2 + (1-x)^2)^(1/2)