Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
a = 1;
N = 100
y_correct = 1;
assert(isequal(rootN(a,N),y_correct))
N =
100
y =
1
|
2 | Fail |
a = [1 64 216];
N = 3
y_correct = [1 4 6];
assert(isequal(rootN(a,N),y_correct))
N =
3
y =
1.0000 4.0000 6.0000
|
3 | Pass |
a = 1/100;
N = 2
y_correct = 1/10;
assert(isequal(rootN(a,N),y_correct))
N =
2
y =
0.1000
|
4 | Fail |
a = 826^10;
N = 10
y_correct = 826;
assert(isequal(rootN(a,N),y_correct))
N =
10
y =
826.0000
|
Output any real number that is neither positive nor negative
316 Solvers
07 - Common functions and indexing 2
316 Solvers
ベクトル [1 2 3 4 5 6 7 8 9 10] の作成
292 Solvers
Find the dimensions of a matrix
372 Solvers
509 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!