Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Finding all complex nth roots

I would love it if there were a command, let's say all_complex_roots, that returned a list or tuple or whatever of the 2 square roots, 3 cube roots, etc of a number. For instance, an input like all_complex_roots(1,4) would have the expected output [1,-1,I,-I] or some such.

Does such a command exist? I've seen workarounds, like finding all complex roots of the polynomial $X^4-1$, but is there something direct?