> For the complete documentation index, see [llms.txt](https://nelson-9.gitbook.io/nelson/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://nelson-9.gitbook.io/nelson/markdown/en/trigonometric_functions/sin.md).

# sin

Computes the sine in radians for each element of x.

## 📝 Syntax

* res = sin(x)

## 📥 Input argument

* x - a numeric value

## 📤 Output argument

* res - a numeric value

## 📄 Description

sin computes the sine in radians for each element of x.

The sine function is defined as: $$\sin(x) = \frac{e^{ix} - e^{-ix}}{2i}$$

For real arguments, it represents the y-coordinate on the unit circle.

## 💡 Example

```matlab
A = eye(3, 3);
res = sin(A)
```

## 🔗 See also

[asin](/nelson/markdown/en/trigonometric_functions/asin.md).

## 🕔 History

| Version | 📄 Description  |
| ------- | --------------- |
| 1.0.0   | initial version |
