Find the real cube root of-27. nthroot(-27,3) ans = -3 For comparison, calculate(-27)^(1/3). The result is the complex cube root of-27. (-27)^(1/3) ans = 1.5000 + 2.5981i Calculate several real nth roots of-8. N
This MATLAB function returns the nth root of x with the phase angle closest to the phase of x.
If `n` exceeds the total number of [iterated][mdn-iterator-protocol] values, the function returns `undefined`. ```javascript import array2iterator from 'https://cdn.jsdelivr.net/gh/stdlib-js/array-to-iterator@deno/mod.js'; var array2iterator = require( '@stdlib/array-to-iterator' ); ...
Tips Whilepoweris a more efficient function for computing the roots of numbers, in cases where both real and complex roots exist,powerreturns only the complex roots. In these cases, usenthrootto obtain the real roots. Extended Capabilities ...
Find the real cube root of-27. nthroot(-27,3) ans = -3 For comparison, calculate(-27)^(1/3). The result is the complex cube root of-27. (-27)^(1/3) ans = 1.5000 + 2.5981i Calculate several real nth roots of-8. N = [5 3 -1]; Y = nthroot(-8,N) ...
This MATLAB function returns the nth root of x with the phase angle closest to the phase of x.
Find the real cube root of-27. nthroot(-27,3) ans = -3 For comparison, calculate(-27)^(1/3). The result is the complex cube root of-27. (-27)^(1/3) ans = 1.5000 + 2.5981i Calculate several real nth roots of-8. N = [5 3 -1]; Y = nthroot(-8,N) ...
While power is a more efficient function for computing the roots of numbers, in cases where both real and complex roots exist, power returns only the complex roots. In these cases, use nthroot to obtain the real roots. Extended Capabilities expand all Tall Arrays Calculate with arrays that hav...
root = true # Set properties for all files: [*] end_of_line = lf charset = utf-8 trim_trailing_whitespace = true insert_final_newline = true # Set properties for JavaScript files: [*.{js,js.txt}] indent_style = tab # Set properties for JavaScript ES module files: [*.{mjs,mjs...
While power is a more efficient function for computing the roots of numbers, in cases where both real and complex roots exist, power returns only the complex roots. In these cases, use nthroot to obtain the real roots. Extended Capabilities expand all Tall Arrays Calculate with arrays that hav...