Calculates the nth-root of a complex number.
// Returns an array of cube roots of 8const roots = Chalkboard.comp.root(Chalkboard.comp.init(8), 3); Copy
// Returns an array of cube roots of 8const roots = Chalkboard.comp.root(Chalkboard.comp.init(8), 3);
The complex number
Optional
The index
Calculates the nth-root of a complex number.
Example