Cody

Solution 973625

Submitted on 17 Sep 2016 by Jan Orwat
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

This solution is outdated. To rescore this solution, sign in.

Test Suite

Test Status Code Input and Output
1   Pass
a=1; b=2; c=1; y_correct = [-1 -1]; assert(isequal(quadRoots(a,b,c),y_correct))

2   Pass
a=1; b=-5; c=6; y_correct = [2 3]; assert(isequal(quadRoots(a,b,c),y_correct))

3   Pass
a=1; b=5; c=6; y_correct = [-2 -3]; assert(isequal(quadRoots(a,b,c),y_correct))

4   Pass
a=2; b=10; c=12; y_correct = [2 3]; assert(isequal(quadRoots(a,b,c),y_correct))

5   Pass
a=1; b=19; c=90; y_correct = [-9 -10]; assert(isequal(quadRoots(a,b,c),y_correct))