This seems very strange to me that when on calculator I write $$\tan\left(\frac{183.5^\circ}{2}\right)$$ the calculator gives me the answer $-32.73026372$ but when I write $$ 2\arctan(-32.73.73026372)$$ the calculator gives me the answer $-176.5$.
So I wonder why does this inconsistency lie in mathematically sound procedures?
This is not a contradiction because nobody is claiming that $\arctan$ is the inverse function of $\tan$. $\tan$ is not a one-to-one function, so there are values $x$ and $y$ such that $x\neq y$ but $\tan(x)=\tan(y)$.