Real nth root of real numbers
y=nthroot(x,n)
real scalar or vector/matrix
real scalar or vector/matrix
nthroot(x,n)
is the real vector/matrix of the nth root of the
x
elements. If x
has negative elements, n
must be odd.
If n
is not a scalar, then the function proceeds elementwise.