Documentation/Calc Functions/COS
Jump to navigation
Jump to search
TDF LibreOffice Document Liberation Project Community Blogs Weblate Nextcloud Redmine Ask LibreOffice Donate
Function name:
COS
Category:
Mathematical
Summary:
Returns the cosine of the given angle (in radians).
Syntax:
COS(Number)
Returns:
Returns the (trigonometric) cosine of Number, the angle in radians. The resultant value is between -1 and 1, i.e. [-1,1].
Arguments:
Number is the real number,or a reference to a cell containing that number, which is the angle in radians whose cosine value is to be calculated.
Additional details:
To insert an angle in degrees, either multiply the angle by PI()/180 or use the RADIANS function to convert the angle to radians.
The figure below illustrates the function COS.
Examples:
Formula | Description | Returns |
---|---|---|
=COS(1) | cosine of 1 radian | 0.54030230586814 |
=COS(PI()*2) | cosine of 2*PI or 2π radians | 1 |
=COS(RADIANS(60)) | cosine of 60° by first converting angle in degrees to radians. | 0.5 |
Related LibreOffice functions:
ODF standard:
Equivalent Excel functions:
COS