COT
For an angle in radians, its cosine divided by its sine.
Group: Math. Compatible with DAX.
Syntax
COT ( <number> )
| Parameter | Type | Description |
|---|---|---|
number | Number | An angle in radians; not 0. |
Returns
Number. The cotangent of the angle: its cosine divided by its sine.
Remarks
- It is 1 divided by
TANof the angle. - An angle of 0, and a blank, which counts as 0, are a division by zero and an error.
- Angles are in radians. To work in degrees, wrap the angle in
RADIANSfirst.
Examples
Cotangents
EVALUATE
ROW (
"Pi / 4", COT ( PI () / 4 ),
"Of 1", COT ( 1 ),
"Of -1", COT ( -1 )
)
| Pi / 4 | Of 1 | Of -1 |
|---|---|---|
| 1 | 0.642092615934331 | -0.642092615934331 |