Cody

Problem 546. Is A the inverse of B?

Solution 1201248

Submitted on 31 May 2017
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test Status Code Input and Output
1   Fail
A=[2,4;3,5]; B=[-2.5,2;1.5,-1]; y_correct = 1; assert(isequal(isInverse(A,B),y_correct))

Error using isInverse Too many input arguments. Error in TestPoint1 (line 4) assert(isequal(isInverse(A,B),y_correct))

2   Fail
A=[1,2;3,5]; B=[-5,2;3,-1]; y_correct = 1; assert(isequal(isInverse(A,B),y_correct))

Error using isInverse Too many input arguments. Error in TestPoint2 (line 4) assert(isequal(isInverse(A,B),y_correct))

Suggested Problems

More from this Author16

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!