# COT Function

> Return the cotangent of an angle in radians, the reciprocal of the tangent, with the COT formula function of TX Sheet Control: #DIV/0! and an example.

- **Product:** TX Sheet Control
- **Section:** Documentation
- **Kind:** Function
- **Path:** TX Sheet Control > API Reference > Formula Functions > COT Function
- **161 words**
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/cot/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/cot/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/cot/llms-full.txt

---

Return the cotangent of an angle. `number` is the angle in radians. The cotangent is the reciprocal of the tangent, so an angle of 0 returns `#DIV/0!`.

### Syntax

```text
COT(number)
```

Category: Math. Minimum arguments: 1. Maximum arguments: 1.

Available for supported offline calculation.

### Examples

```text
=COT(0.5)
```

The formula returns 1.8304877217.

Cell and range examples require appropriate input values in the referenced cells. Handle invalid arguments, formula errors and array and spill constraints.

### See Also

- [Formulas](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/formulas/llms-full.txt)
- [Custom Functions and Formula Data](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/custom-functions/llms-full.txt)

---

## Nearby

- **Previous:** [COSH Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/cosh/llms-full.txt)
- **Next:** [COTH Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/coth/llms-full.txt)
