1. Limited time only! Sign up for a free 30min personal tutor trial with Chegg Tutors
    Dismiss Notice
Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Even/odd indicator function

  1. Jun 26, 2011 #1
    Is there a convenient shorthand for an "indicator function" of a positive integer n which vanishes if n is odd and is equal to 1 otherwise? I was thinking about something like

    [tex]\mathbb{1}_{\{\mathrm{mod}(n,2)=0\}}(n),[/tex]
    but I'm not sure if this would be considered acceptable mathematical notation.
     
  2. jcsd
  3. Jun 26, 2011 #2

    HallsofIvy

    User Avatar
    Staff Emeritus
    Science Advisor

    What about
    [tex]\frac{(-1)^n+ 1}{2}[/tex]
     
  4. Jun 26, 2011 #3

    tiny-tim

    User Avatar
    Science Advisor
    Homework Helper

    (1 + (-1)n)/2 ?

    δ(sin(nπ)) ? :smile:
     
  5. Jun 26, 2011 #4
    Thanks!
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook




Similar Discussions: Even/odd indicator function
  1. Even or odd function (Replies: 5)

  2. Even odd functions (Replies: 3)

Loading...