Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to get selective outputs printed

After running my code


 -------------------
  if................
     show((x,y,z))

The output is a collection of list of triplets of square matrices of same order.

I want only those output to be printed which contain same set of three matrices, keeping the first matrix fixed.

That is, for example, suppose I am getting the following outputs:

1.[A1,P,Q]

2.[A1,Q,P]

3.[P,Q,A1]

4.[A2,L,M]

5.[A2,M,L]

6.[A2,X,Y]

7.[Q,L,A1]

Now consider the first three outputs . The first two outputs are to be considered same. But the third output is to be considered different, though all three outputs contain same set of matrices. So, first and third need only be printed.. Similarly , as fourth and fifth outputs are same, I want only fourth output to be printed and not the fifth one. And so on…