Solve tan x = 1 on [0, 2pi)