Normally I just look up or remember that $\cos(\pi/4)=\frac{\sqrt2}{2}$, or type "$\cos(\pi/4)$" into WolframAlpha to check the answer.
But what about the first time someone wanted to know what $\cos(\pi/4)$ was? How could they find out before trig tables and WolframAlpha?
How can you prove that $\cos(\pi/4)=\frac{\sqrt2}{2}$?