For $x \approx y$, how may we avoid loss of significance errors in computing $\tan(x) - \tan(y)$?
I don't think Taylor polynomials will be useful here, so I am thinking the answer lies in some sort of trig identity trick. I have managed to get the approximation $$\tan(x) - \tan(y) \approx \frac{4 \sin(x) \sin(y)}{\sin(2x) \sin(2y)} (x - y)$$ for $x \approx y$, but I'm not sure that this helps, as it still contains the quantity $x - y$, which could introduce loss of significance errors itself. Thank you for any help!