I noticed that maple's command Transpose can mean two different things:
 

 

ListTools

The Transpose function transposes a list of lists
 

 

LinearAlgebra

The Transpose function computes the transpose of a Matrix, Vector, or scalar.
 

 

 


To highligt this I have selected two examples:

 

 

Example-1


restart:
with(ListTools):
with(LinearAlgebra):

A := Matrix([[1, 2, 3, 4], [5, 6, 7, 8], [9, 10, 11, 12]]):
Transpose(A);

                                 [1  5   9]
                                 [        ]
                                 [2  6  10]
                                 [        ]
                                 [3  7  11]
                                 [        ]
                                 [4  8  12]
 

 

Example-2


restart:
with(LinearAlgebra):
with(ListTools):

A := Matrix([[1, 2, 3, 4], [5, 6, 7, 8], [9, 10, 11, 12]]):
Transpose(A);

Error, invalid input: ListTools:-Transpose expects its 1st argument, L, to be of type listlist, but received Matrix(3, 4, {(1, 1) = 1, (1, 2) = 2, (1, 3) = 3, (1, 4) = 4, (2, 1) = 5, (2, 2) = 6, (2, 3) = 7, (2, 4) = 8, (3, 1) = 9, (3, 2) = 10, (3, 3) = 11, (3, 4) = 12})


 

 


Please Wait...