Unexpected matrix multiplication results?

If we multiply any matrix with any identity matrix means, if functioning wrongly. I’m checking it by manually, I got some other answer, but Wolfram shows wrong answer. It’s a simple 2*2 matrix multiplication. But it works wrongly…

My guess that you used multiply instead of Dot (which is an inner product).

In[11]:= ii = IdentityMatrix[3];

In[10]:= m = {{2, 2, 3}, {4, 5, 6}, {1, 2, 3}}

In[17]:= ans = m . ii

Out[17]= {{2, 2, 3}, {4, 5, 6}, {1, 2, 3}}

Does this fix your discrepancy?

Regards

Welcome to Wolfram Community!
Please make sure you know the rules: https://wolfr.am/READ-1ST
Your post is too vague. Please describe your subject extensively providing the details, examples, and other relevant ideas, so it is clear what exactly you are looking for.

Ohh thank you so much sir…because i used * (asterik) symbol for matrix multiplication. Right now i noticed from your reply, i checked this, its working perfectly. Thank you so much sir.

Sorry for the inconvenience, sir. My doubt was cleared, sir. Thank you so much.

Sir if you dont mind, please can you explain where we use asterik (*) and dot (.) for multiplication?

The Dot operator is for vector and matrix multiplication. Multiplication is an element by element operation. For example:

In[61]:= {a, b, c} . {x, y, z}

Out[61]= a x + b y + c z

In[62]:= {a, b, c} * {x, y, z}

Out[62]= {a x, b y, c z}

The more general form of Dot is Inner (Dot is Inner using multiplication and addition as arguments). One way to think of it is that multiplication treats the operands as lists while Dot treats them as vectors and matrices.

Regards,

Neil