Solve for x cos(x)=1/2