# to_radicals 函数

把以多项式根形式给出的代数数用根式表示。

## 怎么写

### to_radicals(expr)

**expr**

任意表达式：一个数、一个公式、一个列表或一个矩阵。接受一个表达式。

## 示例

- $\displaystyle \operatorname{Root}_{1}(x^{2}-2) = -\sqrt{2}$

  `to_radicals(root(x^2 - 2, 1))`

  在求解器中，`to_radicals(root(x^2 - 2, 1))` 的结果是 `-sqrt(2)`。

  [在求解器中打开](https://zh.hilberon.com/?q=to_radicals%28root%28x%5E2%20-%202%2C%201%29%29)

## 相关函数

- [together](https://zh.hilberon.com/library/together)

  把分数合并成同分母的一个分数。
- [subs](https://zh.hilberon.com/library/subs)

  在表达式中代入一条规则或规则列表。
- [apart](https://zh.hilberon.com/library/apart)

  将有理式拆分成部分分式。
- [simplify](https://zh.hilberon.com/library/simplify)

  化简表达式，可选在假设条件下进行。
- [cancel](https://zh.hilberon.com/library/cancel)

  约去分数的公因式。
- [resultant](https://zh.hilberon.com/library/resultant)

  两个多项式关于某个变量的结式。

---
Source: https://zh.hilberon.com/library/to_radicals
