public static Complex[] RootsOfUnity(
int n
)
Public Shared Function RootsOfUnity (
n As Integer
) As Complex()
public:
static array<Complex>^ RootsOfUnity(
int n
)
static member RootsOfUnity :
n : int -> Complex[]
The roots are listed in the usual anti-clockwise order, starting from 1.
This method ensures that 1 and -1 (when it appears) are exact, and that conjugate roots are exactly conjugate.