> For the complete documentation index, see [llms.txt](https://documentation.soulver.app/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://documentation.soulver.app/ru/spravochnik-po-sintaksisu/general/logarithms-and-roots.md).

# Логарифмы и корни

### Квадратный и кубический корень

| Функция | Название          | Поведение                                       |
| ------- | ----------------- | ----------------------------------------------- |
| sqrt()  | Квадратный корень | Возвращает квадратный корень из числа (также √) |
| cbrt()  | Кубический корень | Возвращает кубический корень из числа           |

```
sqrt(16)          | 4
cbrt(343)         | 7

square root of 81 | 9
cube root of 27   | 3
```

### N-й корень

```
root 5 of 100 | 2.5118864315
```

### Логарифмы

| Функция        | Название                 | Поведение                                                                                                   |
| -------------- | ------------------------ | ----------------------------------------------------------------------------------------------------------- |
| exp()          | Экспоненциальный         | Вычисляет значение e в степени x, где e — основание натурального логарифма. exp(1) возвращает число Эйлера. |
| ln()           | Натуральный логарифм     | Натуральный логарифм числа — это его логарифм по основанию математической константы e.                      |
| log2()         | Логарифм по основанию 2  | Вычислить логарифм по основанию 2 значения                                                                  |
| log(), log10() | Логарифм по основанию 10 | Вычислить логарифм по основанию 10 значения                                                                 |

### Логарифм по любому основанию

```
log 20 base 4 | 2.1609640474
```

Вы также можете использовать более естественные фразы для этой операции:

```
81 is 9 to what power     | 2
27 is 3 to the what power | 3
```

### Факториал и абсолютное значение

| Функция | Название            | Поведение                                                                            |
| ------- | ------------------- | ------------------------------------------------------------------------------------ |
| abs()   | Абсолютное значение | Возвращает абсолютное значение числа (т.е. делает отрицательное число положительным) |
| fact()  | Факториал           | Возвращает факториал заданного числа.                                                |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://documentation.soulver.app/ru/spravochnik-po-sintaksisu/general/logarithms-and-roots.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
