Results 1 to 2 of 2

Math Help - [SOLVED] Cases

  1. #1
    MHF Contributor Swlabr's Avatar
    Joined
    May 2009
    Posts
    1,176

    [SOLVED] Cases

    I want to define a function so that even numbers will go somewhere and odd numbers will go somewhere else. How would I get LaTeX to do the curly bracket needed, one that has two rows?

    What I want to do is g_n:= \displaystyle \begin{cases} n & x \in E_i \mbox{ for at least } n \mbox{ values of } i \in \mathbb{N} \\ 0 & \mbox{ otherwise} \end{cases} which looks fine. However...I can't put it in my document! It doesn't like the "&"s, and does nothing if I take them out...It's in a "\newtheorem{answer}{Answer}...\begin{answer}...\e nd{answer}" thingy if that makes any difference?

    Help?
    Follow Math Help Forum on Facebook and Google+

  2. #2
    MHF Contributor Swlabr's Avatar
    Joined
    May 2009
    Posts
    1,176
    Anyone? It is not liking the alignment tab character...

    EDIT: Nevermind - I thought I was using amsmath when actually I hadn't loaded it. oops.
    Last edited by Swlabr; December 21st 2009 at 02:27 AM.
    Follow Math Help Forum on Facebook and Google+

Similar Math Help Forum Discussions

  1. Replies: 2
    Last Post: November 18th 2011, 09:49 PM
  2. Replies: 3
    Last Post: April 3rd 2010, 03:54 PM
  3. Proof by Cases
    Posted in the Discrete Math Forum
    Replies: 1
    Last Post: March 18th 2009, 09:36 AM
  4. CD Cases
    Posted in the Pre-Calculus Forum
    Replies: 4
    Last Post: November 12th 2008, 11:02 PM
  5. Using cases in proofs
    Posted in the Calculus Forum
    Replies: 1
    Last Post: September 2nd 2007, 06:38 AM

Search Tags


/mathhelpforum @mathhelpforum