This solution is outdated. To rescore this solution, sign in.
Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
%%
x = 4096;n=4;
y_correct = 8;
assert(isequal(nth_root(x,n),y_correct))
|
2 | Pass |
%%
x = 256;n=4;
y_correct = 4;
assert(isequal(nth_root(x,n),y_correct))
|
3 | Pass |
%%
x = 125;n=5;
y_correct = 2.6265;
assert(isequal(nth_root(x,n),y_correct))
|
232 Solvers
495 Solvers
Find nearest prime number less than input number
268 Solvers
260 Solvers
224 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!