Fandom

LaTeX Wiki

cases (LaTeX environment)

142pages on
this wiki
Add New Page
Talk0 Share

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.


LaTeX markup... ...results in: ...is used for:
f(n) = \begin{cases} n/2 &\mbox{if } n \equiv 0 \\
(3n +1)/2 & \mbox{if } n \equiv 1 \end{cases} \pmod{2}.
f(n) = \begin{cases} n/2 &\mbox{if } n \equiv 0 \\
                 (3n +1)/2 & \mbox{if } n \equiv 1 \end{cases} \pmod{2}. function defined piecewise

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.