For sin2x+cosx=0, use a double-angle or half-angle formula to simplify the equation and then find all solutions of the equation in the interval [0,2π).