MS Access Cos() Function

The Cos() function in MS Access calculates the cosine of an angle. Cosine is a fundamental trigonometric function used in various mathematical and scientific calculations.



Cos(): Definition and Usage

Cos() takes an angle (in radians) as input and returns its cosine. The cosine of an angle is a value between -1 and 1, representing the ratio of the adjacent side to the hypotenuse in a right-angled triangle.

Syntax

Syntax

Cos(number)
      

Parameter Values

Parameter Description
number The angle in radians for which you want to calculate the cosine. This is required and must be a numeric value.

Example

Calculating the Cosine of an Angle

This example calculates the cosine of the angle 5 radians.

Syntax

SELECT Cos(5) AS CosNum;
      
Output

CosNum
-------
-0.283662185463226
      

**Note:** The output value is approximate due to the nature of floating-point calculations. The input angle to the `Cos()` function must be in radians. To convert degrees to radians, you would typically use the `RADIANS()` function (if your database system provides one).