Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
x = 1; a=1:3;
y_correct = 6;
assert(isequal(Poly(x,a),y_correct))
|
2 | Pass |
x = 0; a=1:9;
y_correct = 1;
assert(isequal(Poly(x,a),y_correct))
|
3 | Pass |
x = 0; a=3:9;
y_correct = 3;
assert(isequal(Poly(x,a),y_correct))
|
4 | Pass |
x = -1; a=[7,12,2];
y_correct = -3;
assert(isequal(Poly(x,a),y_correct))
|
15294 Solvers
Sum the numbers on the main diagonal
453 Solvers
Flip the vector from right to left
2665 Solvers
320 Solvers
248 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!