0

Sometimes in mathematics, when defining a function, I see something like

f(x) = 0 if x is even
       1 if x is odd

where an open brace is used in front of the values 0 and 1. How can I do that in LaTeX?

Kunal
  • 393

1 Answers1

1

Take a look here: http://en.wikibooks.org/wiki/LaTeX/Advanced_Mathematics#The_cases_environment, which perfectly answers your question.

Remember to include the amsmath package in your preamble: \usepackage{amsmath}