$\cos\theta = \cos\phi$ and $\sin\theta = \sin\phi$ give $\theta = 2n\pi + \phi$ ($n$ being any integer)
But dividing 2nd equation by 1st one gives $\tan\theta = \tan\phi$ which in turn reduces to $\theta = n\pi + \phi$ ($n$ being any integer).
Where am I wrong?
Think it out.
$\sin(\theta + \pi) = -\sin(\theta)$
$\cos(\theta + \pi) = -\cos(\theta)$
So $\tan(\theta + \pi) = \frac {\sin(\theta + \pi)}{\cos(\theta + \pi) } = \frac {-\sin \theta}{-\cos \theta} = \frac {\sin \theta}{\cos \theta} = \tan {\theta}$.
====
So $\tan {\theta} = \tan {\phi}$
Means either $\sin{\theta} = \sin{\phi}$ and $\cos{\theta} = \cos{\phi}$ OR $\sin{\theta} = -\sin{\phi}$ and $\cos{\theta} = -\cos{\phi}$.
Which means $\theta = 2k\pi + \phi$ OR $\theta = (2k+1)\pi + \phi$.
Which means $\theta = n*\pi + \phi$.