I am new to Mathematica. One thing that I don't get is why if I define a matrix and give it a name, then use the name in another function, I get back the function itself. However, When I use an explicit matrix inside a function I get meaningful output. Compare the following two examples:
A = ( {
{a11, a12},
{a21, a22}
} ) //
Transpose[A] // MatrixForm
The output of the above is just the same function name Transpose[]
Transpose[(a11 a12
a21 a22
)]
But to get the actual transpose I have to provide the actual matrix as output like this.
Transpose[( {
{a11, a12},
{a21, a22}
} )] // MatrixForm
The output is what I want
(a11 a21
a12 a22)
Any explanation pleae?
A = ({{a11, a12}, {a21, a22}}) // Transpose[A] // MatrixForm
is incorrect and yields an error message. UseA = ({{a11, a12}, {a21, a22}}) // Transpose // MatrixForm
instead. $\endgroup$