I am having a problem with keeping the parentheses enclosing a dot product in HoldForm[]. I want to keep them in my equations since they indicate important grouping information. To prevent MMA removing the parentheses, I placed the whole expression in a HoldForm[], but MMA ignored that and still deleted them, which annoyed me quite a lot.
Example 1: The expression I was trying to input and what I got:
HoldForm[(a . b) (c . d) == Subscript[a, j] Subscript[b, j] Subscript[c, k] Subscript[d, k]] Example 2: The expression I was trying to input and what I got:
HoldForm[u + (a . b) v == a . a (b . v) a] Example 3: The expression I was trying to input and what I got:
HoldForm[a\[Cross](b\[Cross]c) == (a . c) b - (a . b) c] So I was wondering, how can I make MMA preserve the parentheses around a certain expression like dot product I placed in HoldForm[]?







PrecedenceForm? $\endgroup$Infix. If there is a way to find integer-specified precedence levels for any operator, then solution you suggested would be perfect enough. $\endgroup$Precedenceto get the numbers, e.g.Precedence[Times]gives400. $\endgroup$