# 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](https://nelson-9.gitbook.io/nelson/markdown/en/trigonometric_functions/asin).

## 🕔 History

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


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://nelson-9.gitbook.io/nelson/markdown/en/trigonometric_functions/sin.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
