Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Get the set of primitive nth roots of unity
returns a list of the nth primitive roots of unity.
Find the primitive fifth roots of unity:
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:
This work is licensed under a Creative Commons Attribution 4.0 International License