In a textbook I recently saw the notation $$x_1\cdot x_2\cdots x_n$$ which was intended to mean $\prod\limits_{i=1}^nx_i$. This is unappealing to me because for example one wouldn't write $$x_1+x_2\cdots x_n,$$ but rather $$x_1+x_2+\dots+x_n.$$
On the other hand, there does not seem to be a good alternative since neither of the following look right - $$x_1\cdot x_2\cdot\dots\cdot x_n$$ $$x_1\cdot x_2\cdot\ldots\cdot x_n$$
This leads to the question:
Is $x_1\cdot x_2\cdots x_n$ the proper notation despite being inconsistent, or is there some other accepted way of using dots in conjunction with \cdot?
From the $\mathrm{\TeX book}$ (Chapter 18: Fine Points of Mathematics Typing, pg. 172):
For example:
$x_1+\cdots+x_n$$\qquad x_1+\cdots+x_n$$x_1=\cdots=x_n=0$$\qquad x_1=\cdots=x_n=0$$A_1\times\cdots\times A_n$$\qquad A_1\times\cdots\times A_n$$f(x_1,\ldots,x_n)$$\qquad f(x_1,\ldots,x_n)$$x_1x_2\ldots x_n$$\qquad x_1x_2\ldots x_n$$(1-x)(1-x^2)\ldots(1-x^n)$$\qquad (1-x)(1-x^2)\ldots(1-x^n)$$n(n-1)\ldots(1)$$\qquad n(n-1)\ldots(1)$More typography: This is getting dangerously close to being more appropriate for TeX.SE, but here you have it: There's an important special case in which
\ldotsand\cdotsdon't give the correct spacing, namely when they appear at the very end of a formula, or when they appear just before a closing delimiter like `)'. In such situations an extra thin space is needed. For example, consider sentences like these:To get the first sentence (I personally had to modify a couple of things above because they did not render as needed, but what follows is what Knuth describes in his book), the author typed
Without the
\,the period would have come too close to the\cdots. Similarly, the second sentence was typed thus:Notice the use of ties, which prevent bad line breaks. Here is an exercise from Knuth:
Knuth's answer:
My own thoughts: I have noticed Knuth's great consistency in notational conventions. For example, in TAOCP, the seventh exercise in 1.2.11.2 reads as follows:
It's very obvious Knuth means $\prod_{i=1}^n i^i$ here, just as your textbook has $\prod_{i=1}^nx_i$ to mean $x_1x_2\dots x_n$ as the notation they were introducing to represent multiplication.
I think everyone can agree that $x_1\cdot x_2\cdots x_n$ is absolutely hideous and should be avoided. Regardless, to a degree, I disagree with Brian M. Scott's comment about $x_1\cdot x_2\cdot\ldots\cdot x_n$ being the only "reasonable solution." For example, in David Gunderson's book Handbook of Mathematical Induction, one comes across the following exercise (screenshot to preserve authenticity):
Of course, that's not pretty at all. Having five center dots is a bit of overkill, and it looks rather horrible. In that case, I think the best solution is to do what Brian mentioned and have $1\cdot3\cdot5\cdot\ldots\cdot(2n-1)$ because you obviously can't have $135\ldots(2n-1)$, but Brian's predilection for using
\ldotshas been stated before, where he often uses\ldotseven between $+$ signs to get $+\ldots+$ (I don't think anything is wrong about this; there is bias in that comment though).What is truly important? That people understand what you are communicating. Of course, it is nice to typeset things very well and make correct use of notation, but I don't think it's something to get too huffy and puffy about (although I do agree $x_1\cdot x_2\cdots x_n$ is a bit disappointing). As the amazing egreg points out (and egreg, if you are reading this, please correct me if I went amiss anywhere), the notation $f : A\to B$ is not even correct--it should be $f\colon A\to B$, but the former is much more common for whatever reason.