I want to define the product between two matrices. If I don't define it as function everything is fine (lines at the end of the image), but when I try to define it as a function it gets strange things. What is going on? And how do I solve it?
The first one is
Okubo[x03_,y03_] = \[Omega]*(x03.y03) - \[Omega]*\[Omega] (y03.x03) - (\[Omega] - \[Omega]*\[Omega])/3 Tr[x03.y03] IdentityMatrix [3];
Okubo[e, e] // MatrixForm
while the second one (working properly) is
\[Omega]*(e.e) - \[Omega]*\[Omega] (e.e) - (\[Omega] - \[Omega]*\[Omega])/3 Tr[e.e] IdentityMatrix [3]
The lement "e" is the the one on which I'm testing the thing and is
e = ( { {2, 0, 0},{0, -1, 0}, {0, 0, -1}} );