Documentation/Calc Functions/COT

Function name:
COT

Category:
Mathematical

Summary:
Calculates the trigonometric cotangent (cot) of an angle expressed in radians.

Syntax:
COT(Number)

Returns:
Returns a real number that is the trigonometric cotangent of the specified angle.

Arguments:
Number is a real number, or a reference to a cell containing that number, which is the angle in radians whose trigonometric cotangent is to be calculated.


 * If Number is non-numeric, then COT reports a #VALUE! error.
 * If Number is equal to 0, then COT reports a #NUM! error.

Additional details:
If your angle is expressed in degrees, either multiply by PI/180 or use the RADIANS function to convert to radians.

The formula for the trigonometric cotangent of x is: $$\cot (x)~=~ \frac{1}{\tan(x)} ~=~\frac{\cos(x)}{\sin(x)}$$

Mathematically, the cotangent of any integer multiple of &pi;, i.e. {......-2&pi;, -&pi;, 0, &pi;, 2&pi;.....} is undefined. For this reason, COT reports an error when its argument is equal to 0. However, because of the inherent inaccuracy in representing &pi; numerically, COT does not report errors for other argument values. You should be aware that COT will return large positive or negative results for non-zero integer values of &pi;.

The figure below illustrates the function COT.



Related LibreOffice functions:
ACOT

COS

CSC

SEC

SIN

TAN

ODF standard:
Section 6.16.21, part 2

Equivalent Excel functions:
COT