Cody

Solution 1204361

Submitted on 4 Jun 2017 by Said BOUREZG
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; 3 4]; b = [23; 32]; x_correct = [4;5]; assert(isequal(solveSimul(A,b),x_correct))

ans = 2 3 23 3 4 32 c1 = -1 0 -4 c2 = 0 1 5 ans = 4 5

2   Pass
A = [2 3; 3 4]; b = [23; 36]; x_correct = [16;-3]; assert(isequal(solveSimul(A,b),x_correct))

ans = 2 3 23 3 4 36 c1 = -1 0 -16 c2 = 0 1 -3 ans = 16 -3

3   Pass
A = [2 3; 3 4]; b = [23; 43]; x_correct = [37;-17]; assert(isequal(solveSimul(A,b),x_correct))

ans = 2 3 23 3 4 43 c1 = -1 0 -37 c2 = 0 1 -17 ans = 37 -17

4   Pass
A = [2 3; 3 4]; b = [23; 49]; x_correct = [55;-29]; assert(isequal(solveSimul(A,b),x_correct))

ans = 2 3 23 3 4 49 c1 = -1 0 -55 c2 = 0 1 -29 ans = 55 -29