This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
%%
a=[2 0 4; 2 4 8];
y_correct = [ 2 1 ];
assert(isequal(system_eq(a),y_correct))
bicg converged at iteration 2 to a solution with relative residual 2e-16.
ans =
2 1
|
2 | Pass |
%%
a=[1 -1 2 21; 0 2 5 21; 4 0 -3 21];
y_correct = [ 9 -2 5 ];
assert(isequal(system_eq(a),y_correct))
bicg converged at iteration 3 to a solution with relative residual 2.2e-16.
ans =
9 -2 5
|
3 | Pass |
%%
a=[ 3 3 0 6; 5 -7 1 -9; 9 3 -2 26];
y_correct = [1 1 -7];
assert(isequal(system_eq(a),y_correct))
bicg converged at iteration 3 to a solution with relative residual 1.3e-16.
ans =
1 1 -7
|
1309 Solvers
Determine if a Given Number is a Triangle Number
322 Solvers
All your base are belong to us
463 Solvers
Who is the smartest MATLAB programmer?
561 Solvers
260 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!