<< normest | Elementary functions | num2bin >> |
Y = nthroot(X, N) |
Input array: scalar, vector, matrix or multidimensional array.
Roots to calculate: scalar or array of same size as X.
result of 'nthroot'.
π = nthroot(π, π) returns the real πth root of the elements of π.
Both π and π must be real scalars or arrays of the same size. If an element in π is negative, the corresponding element in π must be an odd integer.
When computing roots where both real and complex roots exist, the power function efficiently computes only the complex roots.
To obtain the real root in such cases, use the nthroot function instead.
X = [-2 -3 -2; 4 -2 -5]
N = [1 -1 3; 1/2 5 3]
Y = nthroot(X, N)
Version | Description |
---|---|
1.6.0 | initial version |
Allan CORNET