> 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/ja/rifarensu/general/logarithms-and-roots.md).

# 対数と根

### 平方根と立方根

| 関数     | 名称  | 動作                        |
| ------ | --- | ------------------------- |
| sqrt() | 平方根 | 数値の平方根を返します（$\sqrt{}$も含む） |
| cbrt() | 立方根 | 数値の立方根を返します               |

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

81の平方根 | 9
27の立方根 | 3
```

### N乗根

```
100の5乗根 | 2.5118864315
```

### 対数

| 関数             | 名称     | 動作                                                   |
| -------------- | ------ | ---------------------------------------------------- |
| exp()          | 指数関数   | $e$ の $x$ 乗の値（$e$ は自然対数の底）を計算します。exp(1) はオイラー数を返します。 |
| ln()           | 自然対数   | ある数値の自然対数は、数学定数 $e$ を底とする対数です。                       |
| log2()         | 底2の対数  | 値の底2の対数を計算します。                                       |
| log(), log10() | 底10の対数 | 値の底10の対数を計算します。                                      |

### 任意の底への対数

```
20を底4で対数 | 2.1609640474
```

この操作には、より自然なフレーズを使用することもできます。

```
81は何乗の9か | 2
27は何乗の3か | 3
```

### 階乗と絶対値

| 関数     | 名称  | 動作                         |
| ------ | --- | -------------------------- |
| abs()  | 絶対値 | 数値の絶対値を返します（つまり、負の数を正にします） |
| fact() | 階乗  | 指定された数値の階乗を返します。           |
