Cody

Solution 1125935

Submitted on 19 Feb 2017
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test Status Code Input and Output
1   Fail
x = [1 -2 1]; y_correct = [1;1]; assert(isequal(solvepol(x),y_correct))

Undefined function or variable 'a'. Error in solvepol (line 3) y = solve(x(1)*a^2+x(2)*a+x(3)==0,a); Error in TestPoint1 (line 3) assert(isequal(solvepol(x),y_correct))

2   Fail
x = [1 -3 2]; y_correct = [2;1]; assert(isequal(solvepol(x),y_correct))

Undefined function or variable 'a'. Error in solvepol (line 3) y = solve(x(1)*a^2+x(2)*a+x(3)==0,a); Error in TestPoint2 (line 3) assert(isequal(solvepol(x),y_correct))