Cody

Problem 546. Is A the inverse of B?

Solution 3386123

Submitted on 26 Oct 2020 by BunnY
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))

y = -2.5000 2.0000 1.5000 -1.0000

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

y = -5.0000 2.0000 3.0000 -1.0000

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!