1

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?

0 Answers0