Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Get the set of primitive nth roots of unity
ResourceFunction["PrimitiveRootOfUnityList"][n] returns a list of the nth primitive roots of unity. |
Find the primitive fifth roots of unity:
In[1]:= |
Out[1]= |
Notice that 1 is missing from this list, as compared with the full list of the fifth roots of unity returned by the resource function ComplexRoots:
In[2]:= |
Out[2]= |
This work is licensed under a Creative Commons Attribution 4.0 International License