I wanted to do subtractions between to matrices and I did the following
A = {{.96, .04, 0, 0}, {0, .94, .06, 0}, {0, 0, .94, .06}, {0, 0,
0, .96}}
B = IdentityMatrix[4] - A // MatrixForm
I got what I wanted. But if I did
A = {{.96, .04, 0, 0}, {0, .94, .06, 0}, {0, 0, .94, .06}, {0, 0,
0, .96}} // MatrixForm
B = IdentityMatrix[4] - A // MatrixForm
I got a mess.
Could anybody explain why such difference exists?
MatrixFormacts as a "wrapper", which affects printing, but not evaluation. Further calculations can't be done with a matrix if you applyMatrixFormon it's definition. It is just a function to pretty print or visualize a matrix in Mathematica. – PlatoManiac Feb 06 '16 at 23:14