NumberFieldRootsOfUnity
NumberFieldRootsOfUnity[a] gives the roots of unity for the field ℚ[a] generated by the algebraic number a.
Examples
NumberFieldRootsOfUnity[Sqrt[5]]
(* {2, -1} *)NumberFieldRootsOfUnity[Exp[2 Pi I/6]]
(* {6, E^(I Pi/3)} *)Please visit the official Wolfram Language Reference for more details.