I need to calculate cos of very small angles (~10^-10 radians) very accurately (30 decimal places).

I obviously need some way to implement the trigonometric expansion of cos to many decimal places. How can this be done using a computer algorithm if the computer is only accurate to 7 significant figures?

I suppose it's like working out pi to millions of digits.