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
to_radicals(root(x^2 - 2, 1))In the solver,
Open in the solverto_radicals(root(x^2 - 2, 1))gives-sqrt(2).
Related functions
- together
Combine fractions into one over a common denominator.
- subs
Substitute a rule, or a list of rules, in an expression.
- apart
Split a rational expression into partial fractions.
- simplify
Simplify an expression, optionally under assumptions.
- cancel
Cancel the common factors of a fraction.
- resultant
Resultant of two polynomials in a variable.