Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
x=[4 -2 6 8;2 8 2 4;6 10 3 0];
y_correct = [ -1.8049
0.2927
2.6341];
assert(abs(sum(solvepol(x)-y_correct))<0.01)
ans =
1.0000 0 0 -1.8049
0 1.0000 0 0.2927
0 0 1.0000 2.6341
ans =
-1.8049
0.2927
2.6341
|
2 | Pass |
x=[ 9 10 3 10
10 7 6 2
2 1 10 10];
y_correct = [ -2.6456
3.0127
1.2278];
assert(abs(sum(solvepol(x)-y_correct))<0.01)
ans =
1.0000 0 0 -2.6456
0 1.0000 0 3.0127
0 0 1.0000 1.2278
ans =
-2.6456
3.0127
1.2278
|
17478 Solvers
Back to basics 11 - Max Integer
678 Solvers
329 Solvers
126 Solvers
498 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!