This solution is outdated. To rescore this solution, sign in.
Test | Status | Code Input and Output |
---|---|---|
1 | Fail |
a=1;
b=2;
c=1;
y_correct = [-1 -1];
assert(isequal(quadRoots(a,b,c),y_correct))
y =
1 1
|
2 | Fail |
a=1;
b=-5;
c=6;
y_correct = [2 3];
assert(isequal(quadRoots(a,b,c),y_correct))
y =
3.0000 2.0000
|
3 | Fail |
a=1;
b=5;
c=6;
y_correct = [-2 -3];
assert(isequal(quadRoots(a,b,c),y_correct))
y =
3.0000 2.0000
|
4 | Fail |
a=2;
b=10;
c=12;
y_correct = [2 3];
assert(isequal(quadRoots(a,b,c),y_correct))
y =
3.0000 2.0000
|
5 | Fail |
a=1;
b=19;
c=90;
y_correct = [-9 -10];
assert(isequal(quadRoots(a,b,c),y_correct))
y =
10 9
|
1309 Solvers
Given a matrix, return the last eigen value
175 Solvers
231 Solvers
209 Solvers
137 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!