# 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: 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://documentation.soulver.app/es/referencia-de-sintaxis/general/logarithms-and-roots.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.
