The cosine function cosx is one of the basic functions encountered in trigonometry (the others being the cosecant, cotangent, secant, sine, and tangent). Let theta be an angle measured counterclockwise from the x-axis along the arc of the unit circle.