the matrix are given in the problem statement is A,B but function take x
and y and return answer in y that is bit confusing ,any how just use logic A*B^-1=I .
Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
A=[2,4;3,5];
B=[-2.5,2;1.5,-1];
y_correct = 1;
assert(isequal(isInverse(A,B),y_correct))
y =
1
|
2 | Pass |
A=[1,2;3,5];
B=[-5,2;3,-1];
y_correct = 1;
assert(isequal(isInverse(A,B),y_correct))
y =
1
|
Is my wife right? Now with even more wrong husband
1145 Solvers
135 Solvers
206 Solvers
434 Solvers
Returning a "greater than" vector
150 Solvers