In trigonometry, a function of an angle in a right-angled triangle that is defined as the ratio of the length of the side opposite the angle to the length of the hypotenuse (the longest side). This function can be used to find either angles or sides in a right-angled triangle.