# to_radicals function

Write algebraic numbers, given as roots of polynomials, with radicals.

## How to write it

### to_radicals(expr)

**expr**

Any expression: a number, a formula, a list or a matrix. Takes an expression.

## Examples

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

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

  In the solver, `to_radicals(root(x^2 - 2, 1))` gives `-sqrt(2)`.

  [Open in the solver](https://hilberon.com/?q=to_radicals%28root%28x%5E2%20-%202%2C%201%29%29)

## Related functions

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

  Combine fractions into one over a common denominator.
- [subs](https://hilberon.com/library/subs)

  Substitute a rule, or a list of rules, in an expression.
- [apart](https://hilberon.com/library/apart)

  Split a rational expression into partial fractions.
- [simplify](https://hilberon.com/library/simplify)

  Simplify an expression, optionally under assumptions.
- [cancel](https://hilberon.com/library/cancel)

  Cancel the common factors of a fraction.
- [resultant](https://hilberon.com/library/resultant)

  Resultant of two polynomials in a variable.

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