Cody

Solution 1715303

Submitted on 25 Jan 2019 by Valentin Noël-Youïnou
  • Size: 10
  • 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
A=[2 3 7; 0 5 8; 0 0 9]; b=[12; 13; 9]; y_correct = [1; 1; 1]; assert(isequal(my_backsub(A,b),y_correct))

[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 my_backsub (line 2) In ScoringEngineTestPoint1 (line 4) In solutionTest (line 3)]

2   Pass
A=[2 3 7; 0 5 8; 1 0 9]; b=[12; 13; 9]; y_correct = [inf]; assert(isequal(my_backsub(A,b),y_correct))

[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 my_backsub (line 2) In ScoringEngineTestPoint2 (line 4) In solutionTest (line 5)]

3   Pass
A=[7.9200 9.5900 6.5600 0 8.4900 9.3400 0 0 7.4300]; b=[ 66.3400 48.4000 52.0100]; y_correct = [5; -2; 7]; assert(isequal(my_backsub(A,b),y_correct))

[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 my_backsub (line 2) In ScoringEngineTestPoint3 (line 8) In solutionTest (line 7)]

More from this Author4