Skip to main content
MedCalc

COT function

Cotangent function. COT(x) returns the cotangent of x. The argument x must be expressed in radians. To convert degrees to radians you use the RADIANS function. The function is undefined when x = nπ for any integer n (i.e. when sin(x) = 0).

The cotangent is the reciprocal of the tangent:

$$ \operatorname{cot}(x) = \frac{1}{\operatorname{tan}(x)} $$

The cotangent can be represented in terms of sine and cosine:

$$ \operatorname{cot}(x) = \frac{\operatorname{cos}(x)}{\operatorname{sin}(x)} $$

The argument x can be a real number or a matrix. When it is a matrix, the function returns a matrix with the same dimensions and with the COT function applied to all elements.

Examples

COT(PI()/4) equals 1

COT(PI()/6) equals 1.7320508 (=√3)

COT(RADIANS(45)) equals 1

Calculator

COT( )  1.461695947078

Graph

COT

Related functions

External links