Is this purely personal style, or are the generally accepted guidelines? Clearly, when dealing with numbers either $2 \cdot 2$
or $2 \times 2$
is needed, but within formulae where an absence of an operator implies multiplication, when should a \cdot
be used? I tend to use it only sparingly if it aids in grouping. (Of course, barring the cases where it's required, e.g. a dot product.)
[Tex/LaTex] When should \cdot be used to indicate multiplication
best practices
Best Answer
This is only useful to avoid ambiguity. Two circumstances come to mind:
Multiplying actual numbers, as you say:
2 \cdot 2
versus22
is obviously the way to go. More subtly, writing, say,2 \cdot 3^4
is an improvement over2 3^4
for the same reason. You might say "of course!" except that sometimes, if you have a pedantic input style (like me) you fool yourself:2 {13}^2
looks like213^2
.Function notation. This is the only time in abstract algebra that juxtaposition of symbols means something other than multiplication; it means the "product" of a function acting on its argument instead. So, for example, if you have a function
f(x)
and you try to multiply it byx + 1
, you could write eitherf(x + 1)
(obviously wrong) orf(x) (x + 1)
(too many similar braces). Here, writingf \cdot (x + 1)
orf(x) \cdot (x + 1)
is probably best.This is a totally anecdotal answer.