How does one calculate the product of $\tan 1^{\circ} ... \tan 45^{\circ}?$

I considered the more general formula : $$T(m):=\prod_{k=1}^m \tan\left(\frac{k\pi}{4m}\right)$$ and noticed that the result for small values of $m$ was solution of a polynomial of degree $\le m$. For $m=45$ I found that the answer was solution of this irreducible polynomial of degree $24$ : $$1\\- 3256701697315828896312\,x^1 - 325994294876282580655116\,x^2 + 7220097128841103979624568\,x^3 + 112578453555034444841119842\,x^4 + 493898299320136273975435032\,x^5 + 649061666980531722406164708\,x^6 - 840700351973464244018822232\,x^7 -2457988129238279755530778353\,x^8 - 138286882106888055215208624\,x^9 +2474525072938192662606171624\,x^{10}+326024084648343835216068912\,x^{11} - 1088043811994145989051965476\,x^{12} + 5147738954805237173669808\,x^{13} +182273284200850360076819304\,x^{14} - 33045263177263307887100976\,x^{15} + 677463542076505961377071\,x^{16} +170537100491574073221480\,x^{17} - 6714674580553776884700\,x^{18} - 128584156182235814952\,x^{19} - 339010000890501150\,x^{20}\\ +776030507612856\,x^{21} - 397610115660\,x^{22}\\ + 37004040\,x^{23} + 6561\,x^{24}$$

This is an 'experimental' result (no proof) but rather satisfying from the 'not nice' point of view ! ;-)