RootOfUnityQ
RootOfUnityQ[a] yields True if a is a root of unity, and yields False otherwise.
Examples
RootOfUnityQ[Exp[2 Pi I/5]]RootOfUnityQ[Sqrt[2]]Something isn't working? Report an issue.
Please visit the official Wolfram Language Reference for more details.