θ=arctan(2tan(x))