LaTeX Wiki

The cases environment renders multiple lines with an extensible left curly-brace. It can be used for piecewise-defined functions. For this to work, you must have \usepackage{amsmath} in the preamble.

        \emph{$m_{ij}$} :=
        \emph{$w_{ij}$}, if  -1$\leq$\emph{$w_{ij}$}$\leq$1\\ 
        -1, if \emph{$w_{ij}$}$<$-1 \\
        1, if \emph{$w_{ij}$}$>$1 \\
LaTeX markup... ...results in: used for:
Rank(x) = \begin{cases} n/2 &\mbox{if } n \equiv 0 \\
(3n +1)/2 & \mbox{if } n \equiv 1 \end{cases} \pmod{2}.
function defined piecewise