Can a function be both even and odd?

An even number can be divided by 2 evenly. An odd number will have a remainder of 1 when divided by 2. A function can be either.