WLJS LogoWLJS Notebook

Roots

Roots[lhs == rhs, var] yields a disjunction of equations which represent the roots of a polynomial equation.

Examples

Find polynomial roots:

Roots[x^2 - 4 == 0, x]
(* x == -2 || x == 2 *)

Cubic roots:

Roots[x^3 - 1 == 0, x]
(* x == 1 || x == -1/2 - I Sqrt[3]/2 || x == -1/2 + I Sqrt[3]/2 *)

Please visit the official Wolfram Language Reference for more details.

On this page