How do you determine if a function is even or odd?

How do you determine if a function is even or odd?