Solved
Returning an array of matrices using a Mathcad program.
- January 13, 2021
- 2 replies
- 3449 views
This problem came up as a part of a recent linear algebra assignment. 
In this case, we only use matrix multiplication and transpose, yet at the same time express a nontrivial control flow. There are 5^4=625 matrices to check, so performance is not a concern; I am focusing on ease of use.
For reference, here is the answer to this problem:

I have tried to write a Mathcad Program for this purpose. But the problem is that, neither it is returning the whole array of matrices, nor the one output that it gives is correct. It is returning A instead of P. The image of the Mathcad Program is:

Please, if anyone can help me in returning an array of matrices that satisfy the given condition, I would be obliged.



