MATLAB Function Reference Previous page   Next Page
nthroot

Real nth root of real numbers

Syntax

Description

y = nthroot(X, n) returns the real nth root of the elements of X. Both X and n must be real and n must be a scalar. If X has negative entries, n must be an odd integer.

Example

returns the real cube root of -2.

By comparison,

returns a complex cube root of -2.

See Also

power


Previous page  now null Next page

© 1994-2005 The MathWorks, Inc.