Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
x = 1; n = 6;
y_correct = 7;
assert(isequal(simplePoly(x,n),y_correct))
|
2 | Pass |
x = 2; n = 11;
y_correct = 4095;
assert(isequal(simplePoly(x,n),y_correct))
|
3 | Pass |
x = 0; n = 444;
y_correct = 1;
assert(isequal(simplePoly(x,n),y_correct))
|
4 | Pass |
x = -2; n = 3;
y_correct = -5;
assert(isequal(simplePoly(x,n),y_correct))
|
5 | Pass |
x = 2; n = 0;
y_correct = 1;
assert(isequal(simplePoly(x,n),y_correct))
|
1882 Solvers
267 Solvers
Switch matrix to a column vector
260 Solvers
302 Solvers
Test Problem; Create a 5x5 array containing all ones
270 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!