Documentation/Calc Functions/COS

From The Document Foundation Wiki
Jump to: navigation, search
This page contains changes which are not marked for translation.

Other languages:
dansk • ‎English

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.

COS function

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:

COSH

ACOSH

ACOS

SIN

RADIANS

ODF standard:

Section 6.16.3, part 2.

Equivalent Excel functions:

COS