> 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/es/referencia-de-sintaxis/general/logarithms-and-roots.md).

# Logaritmos y raíces

### Raíz Cuadrada y Cúbica

| Función | Nombre        | Comportamiento                                     |
| ------- | ------------- | -------------------------------------------------- |
| sqrt()  | Raíz Cuadrada | Devuelve la raíz cuadrada de un número (también √) |
| cbrt()  | Raíz Cúbica   | Devuelve la raíz cúbica de un número               |

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

raíz cuadrada de 81 | 9
raíz cúbica de 27   | 3
```

### Raíz enésima

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

### Logaritmos

| Función        | Nombre            | Comportamiento                                                                                                                  |
| -------------- | ----------------- | ------------------------------------------------------------------------------------------------------------------------------- |
| exp()          | Exponencial       | Calcula el valor de e elevado a la potencia de x, donde e es la base del logaritmo natural. exp(1) devuelve el número de Euler. |
| ln()           | Logaritmo natural | El logaritmo natural de un número es su logaritmo en base de la constante matemática e.                                         |
| log2()         | Logaritmo base 2  | Calcula el logaritmo en base 2 de un valor                                                                                      |
| log(), log10() | Logaritmo base 10 | Calcula el logaritmo en base 10 de un valor                                                                                     |

### Logaritmo en cualquier base

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

También puedes usar frases más naturales para esta operación:

```
81 es 9 a qué potencia | 2
27 es 3 a qué potencia | 3
```

### Factorial y Valor Absoluto

| Función | Nombre         | Comportamiento                                                                               |
| ------- | -------------- | -------------------------------------------------------------------------------------------- |
| abs()   | Valor absoluto | Devuelve el valor absoluto de un número (es decir, convierte un número negativo en positivo) |
| fact()  | Factorial      | Devuelve el factorial de un número dado.                                                     |


---

# 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/es/referencia-de-sintaxis/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.
