I am trying to print following following equation in latex
The code I have
\documentclass{article}
\usepackage{amsmath, amsthm, amssymb}
\begin{document}
\begin{equation}
P(Z_{n+1}=T|Z,Z_{1}\dots Z_{n}; \alpha) =
\begin{cases}
c(n) = \frac{\alpha}{n} & \text{for }1\le i<l\\
\\
\end{cases}
\end{equation}
\end{document}
The code doesn't produce the required output.
Produced result.
Best Answer
Something like the following? (Observe that
\mid
gives better spacing than|
does.)