Cody

Problem 546. Is A the inverse of B?

Solution 3249503

Submitted on 17 Oct 2020 by Sibi
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   Pass
A=[2,4;3,5]; B=[-2.5,2;1.5,-1]; y_correct = 1; assert(isequal(isInverse(A,B),y_correct))

2   Pass
A=[1,2;3,5]; B=[-5,2;3,-1]; y_correct = 1; 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!