Given a matrix A and a matrix B, is A the inverse of B?
>>A=[2,4;3,5];
>>B=[-2.5,2;1.5,-1];
>>isInverse(A,B)
ans = 1
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
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 .
really too disgusting prb use isequal(fix(B),round(inv(A)))
or y=true
:)
"credit should goes to matlab's built-in function not to programmer" - parvez mh
Sort a list of complex numbers based on far they are from the origin.
3788 Solvers
Set some matrix elements to zero
228 Solvers
Create a vector whose elements depend on the previous element
290 Solvers
198 Solvers
261 Solvers