I'm guessing it has something to do with the Taylor series.
$$\tan(\frac{\pi}{2}-\theta) = \cot \theta$$
The Taylor series for cotangent is:
$$\cot \theta = \frac{1}{\theta} - \frac{1}{3}\theta - \frac{1}{45}\theta^3 + \cdots$$
I'm assuming you were working in degrees instead of radians, so we have to convert ##10^n## to radians:
$$\theta = \frac{10^n\pi}{180}$$
Plugging this back in:
$$\cot(\frac{10^n\pi}{180}) = \frac{180}{10^n\pi} - \frac{10^n\pi}{3\times 180} - \cdots$$
For ##n=1##, we have:
$$\cot(\frac{\pi}{18}) \approx \frac{18}{\pi} \approx 5.73$$
Because of the functional form of the series (with a ##1/\theta## term out front), as ##\theta## gets smaller, the first term in the series becomes a better and better approximation.