Problem 546. Is A the inverse of B?
Solution Stats
Problem Comments
-
9 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
If you are having issues with this and your solution seems correct, it is likely a computer precision issue.
Solution Comments
-
1 Comment
A bit tricky, just needed to convert float to integer.
-
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 Solvers634
Suggested Problems
-
1680 Solvers
-
426 Solvers
-
Sum of odd numbers in a matrix
446 Solvers
-
859 Solvers
-
String Array Basics, Part 1: Convert Cell Array to String Array; No Missing Values
1032 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!