WLJS LogoWLJS Notebook

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]]

Please visit the official Wolfram Language Reference for more details.

On this page