How do you solve #sin x = 1/2# for x in the interval [0,2pi)?