The Cosine Function: Adjacent over Hypotenuse
When you’re using right triangles to define trigonometry functions, the trig function cosine, abbreviated cos, has input values that are angle measures and output values that you obtain from the ratio
Take a look at the following figure,
and you see that the cosines of the two angles are
The situation with the ratios is the same as with the sine function — the values are going to be less than or equal to 1 (the latter only when dealing with circles), never greater than 1, because the hypotenuse is the denominator.
Now for an example.

Find the length of the hypotenuse.
Using the Pythagorean theorem, a^{2} + b^{2} = c^{2}, and replacing both a and b with the given measure, solve for c.

Use the ratio for cosine, adjacent over hypotenuse, to find the answer.
The two ratios for the cosine are the same as those for the sine — except the angles are reversed. This property is true of the sines and cosines of complementary angles in a right triangle (complementary angles add up to 90 degrees).
Here’s an example using the property of complementary angles:

First find the cosine of angle B.
you that the side opposite angle B measures 5 units. You just have to find the measure of the side adjacent to angle B.

Find the measure of the third side of the triangle.

Use the ratio to find the sine of B.