What irrational expressions $A$ with radicals can be expressed as trigonometric rational fraction (not a series) with only rational multiplies of $\pi$.
Example:
$ \frac{1}{\sqrt5} = \frac{\sin\frac{\pi}{10}}{1- \sin\frac{\pi}{10}}$
Is there a general algorithm for such numbers to find such expressions?
UPD: Niven's theorem on Wiki [1] didn't help me to figure it out.