Programmed Math/Cosine
Cosine in trigonometry is the adjacent divided hypotenuse, in the form of
An equation with Cosine would be the following when the adjacent is equal to 5 and the hypotenuse is equal to 10:
= 
Cosine is usually used for triangle with the angle in the corner of lower point of the hypotenuse.