$$\sqrt{2+\sqrt{2+\sqrt{2+\cdots}}}$$
I know that with infinite square roots it's $x = \sqrt{2 + x}$, but what about a non-infinite number of roots? I've searched around a lot for this, and can't find anything useful, nor can I make a dent in the problem myself.
Maybe I'm searching using the wrong vocabulary?
Elaborating on Michael Rozenberg's answer:
Note that
$$\sqrt{2+2\cos\alpha} = \sqrt{4\cos^2\left(\frac{\alpha}{2}\right)} = 2\cos\left(\frac{\alpha}{2}\right)$$
So,
$$\sqrt{2} = 2\cos\left(\frac{\pi}{4}\right)$$
$$\sqrt{2+\sqrt{2}} = 2\cos\left(\frac{\pi}{8}\right)$$
$$\vdots$$
Thus, if we have $n$ square roots, we have
$$x=2\cos\left(\frac{\pi}{2^{n+1}}\right)$$