How do you do cosine, tangent, or sine?
Look it up in your Trig textbook. It is all explained there, believe me.