I am trying to introduce a rule of multiplication of entries of a matrix which would have the following property:
and then produce some manipulation with the matrix, for example, calculate its square with respect to this rule. How can I introduce such rule in Mathematica? Of course, the multiplication of entries which have not equal indexes should be usual one.
delta is symmetric. So, I expect instead of
In:= Clear[delta]; delta[k_, i_]*delta[k_, j_] :> delta[k, i]*delta[i, j]; delta[k_, i_] :> delta[i, k]; FullSimplify[delta[0, 1] (delta[0, 2] - delta[2, 1])] Out= delta[0, 1] (delta[0, 2] - delta[2, 1])
0 as the answer.