Cody

Problem 546. Is A the inverse of B?

Solution 3232548

Submitted on 16 Oct 2020
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))

y = 1×2 logical array 0 0

Assertion failed.

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

y = 1×2 logical array 0 0

Assertion failed.

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!