If you have a calculator that shows what you are typing in, you can just press cos,x2,then 5.
If you have one that doesn't show what you type in, you'd need to press 5, then cos [this will calculate cos5] and then press x2, this will square it and give you what you want.