Problem 546. Is A the inverse of B?
Solution Stats
Problem Comments
-
8 Comments
Need to improve the test suites.
Test of [1 1;1 1] for x and y would break current best solution
Test suite not proper
just y=1 can pass
Test suite has been improved
Inputs should be changed to be A and B instead of x and y
i think there id some error in test case 1,2
Bit tricky
Solution Comments
-
1 Comment
check for isdiag(A*B) and an exception for singular matrices
-
1 Comment
plz provide solution . out of 11 , my 9 case passes
-
1 Comment
only test case is 1, so no real solution is needed. also the problem seems reversed.
-
1 Comment
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 .
-
1 Comment
really too disgusting prb use isequal(fix(B),round(inv(A)))
or y=true
-
1 Comment
:)
-
1 Comment
"credit should goes to matlab's built-in function not to programmer" - parvez mh
Problem Recent Solvers432
Suggested Problems
-
679 Solvers
-
Right Triangle Side Lengths (Inspired by Project Euler Problem 39)
1088 Solvers
-
MATCH THE STRINGS (2 CHAR) very easy
259 Solvers
-
Create an n-by-n null matrix and fill with ones certain positions
437 Solvers
-
The sum of the numbers in the vector
490 Solvers
More from this Author16
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!