Square / N-th Root Calculator

Compute √x or the n-th root of x. Handles negative inputs (real root if n is odd integer; otherwise returns imaginary root).

History
0
Notes: The principal n-th root is computed as x^(1/n). For negative x and odd integer n, a real negative root is returned (e.g. cube root of -8 is -2). For other negative cases the calculator returns the principal imaginary root (shown as value).