I wrote an equation with 3 products involved and it doesn't seem that they want to be written in one line (pic related). My code looks like this:
\begin{center}
$\psi$ =
$$\prod_{i=1}^{x}$$ $\times$
$$\prod_{i=1}^{y}$$ $\times$
$$\prod_{i=1}^{z}$$
\end{center}
I am new to Latex and I don't know what I did wrong.
Thanks for your help!
$$and the next$$will be a displayed equation in a line of its own. That's how TeX works. If you want the product symbols in the same line, put them all between the same$$...$$pair:$$\prod_{i=1}^{x} \times \prod_{i=1}^{y}$$. And don't use\begin{center}...\end{center}there. – Phelype Oleinik Mar 08 '19 at 22:18