Cody

Solution 1692554

Submitted on 14 Dec 2018 by HH
  • Size: 9
  • This is the leading solution.
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   Pass
p=[-1 1] x=[1 2;3 4] y_correct=[ 0 -1; -2 -3] assert(isequal(SolvePoly(p,x),y_correct))

p = -1 1 x = 1 2 3 4 y_correct = 0 -1 -2 -3 [Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In unix (line 32) In SolvePoly (line 2) In ScoringEngineTestPoint1 (line 4) In solutionTest (line 3)]

2   Pass
p=[-2 0 1 -1 3 2] x=[5 6 11; 2 13 7; 4 9 21] y_correct=[-6133 -15352 -320857; -52 -740517 -33297; -1986 -117421 -8159317] assert(isequal(SolvePoly(p,x),y_correct))

p = -2 0 1 -1 3 2 x = 5 6 11 2 13 7 4 9 21 y_correct = -6133 -15352 -320857 -52 -740517 -33297 -1986 -117421 -8159317 [Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In unix (line 32) In SolvePoly (line 2) In ScoringEngineTestPoint2 (line 6) In solutionTest (line 5)]