Feed on
Posts
Comments

if you’re trying to fit a choose statement into an equation in latex, you might be tempted to use nchoosek (as i was). that doesn’t work though.

try this instead:

N \choose{2}

to print the equivalent of “n choose 2.”


Bookmark and Share

if that was helpful ...

check out the other tips and tricks i've compiled on these pages. you might learn something else interesting!

6 Responses to “insert a choose statement in latex”

  1. on 19 Sep 2006 at 3:21 am Anon

    I found that useful, thanks.

  2. on 06 May 2007 at 7:21 pm Katya

    it didn’t work for me inserting this into a larger equation.
    I used {n \choose k} instead.

  3. on 01 Feb 2008 at 9:37 pm Danielle

    I used the {n \choose k} and it worked beautifully!!! Thanks!!! :)

  4. on 06 Feb 2008 at 12:49 am Alex

    This was useful, thanks. I guessed it would have been \choose{N}{K}, but that would have made too much sense, I guess. :P

  5. on 30 May 2008 at 4:49 pm Mercredi

    The construction ${n \choose r}$ (that’s the more correct form for $n \choose{r}$, what you gave) is now deprecated; it’s generally better to use $\binom{n}{r}$ or $\dbinom{n}{r}$.

  6. on 16 Mar 2011 at 5:37 pm Carly

    Thanks, just what I was looking for

Did I get this wrong? Let me know!

Trackback URI | Comments RSS

More blogs about http://desk.stinkpot.org:8080/tricks.