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 Solvers431
Suggested Problems
-
Get the length of a given vector
6140 Solvers
-
Convert a vector into a number
545 Solvers
-
312 Solvers
-
423 Solvers
-
Solving Quadratic Equations (Version 1)
448 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!