nthroot
The real πth root of real number.
Syntax
Y = nthroot(X, N)
Input argument
X - Input array: scalar, vector, matrix or multidimensional array.
N - Roots to calculate: scalar or array of same size as X.
Output argument
Y - result of 'nthroot'.
Description
π = 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.
Example
See also
History
Version | Description |
---|---|
1.6.0 | initial version |
Author
Allan CORNET
Last updated