Solve for x 1/2=cos(x)