Solve sin x = cos x on [0, 2pi)