# IMCOS Function

> Calculate the cosine of a complex number with the IMCOS formula function of TX Sheet Control: complex numbers as x+yi or x+yj text, real numbers and an example.

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

---

Return the cosine of a complex number. `inumber` is a complex number as text in the form x+yi or x+yj, or a real number, and the result is a complex number as text.

### Syntax

```text
IMCOS(inumber)
```

Category: Engineering. Minimum arguments: 1. Maximum arguments: 1.

Available for supported offline calculation.

### Examples

```text
=IMCOS("2+3i")
```

The formula returns the text -4.189625690968807-9.109227893755337i.

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:** [IMCONJUGATE Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/imconjugate/llms-full.txt)
- **Next:** [IMCOSH Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/imcosh/llms-full.txt)
